fix(接口自动化): 数据迁移问题修复

This commit is contained in:
fit2-zhao 2021-01-27 18:20:03 +08:00
parent e0da5d4dc6
commit 5e6aea31ce
1 changed files with 3 additions and 1 deletions

View File

@ -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"));