fix(接口自动化): 数据迁移问题修复
This commit is contained in:
parent
e0da5d4dc6
commit
5e6aea31ce
|
@ -134,7 +134,9 @@ public class HistoricalDataUpgradeService {
|
|||
request1.getBody().setType(Body.FORM_DATA);
|
||||
}
|
||||
if ("json".equals(request1.getBody().getFormat())) {
|
||||
request1.getBody().setType(Body.JSON);
|
||||
if ("Raw".equals(request1.getBody().getType())) {
|
||||
request1.getBody().setType(Body.JSON);
|
||||
}
|
||||
if (CollectionUtils.isEmpty(request1.getHeaders())) {
|
||||
List<KeyValue> headers = new LinkedList<>();
|
||||
headers.add(new KeyValue("Content-Type", "application/json"));
|
||||
|
|
Loading…
Reference in New Issue