fix: postman导入后参数无法编辑
This commit is contained in:
parent
5c798ae540
commit
e26d0d6110
|
@ -39,6 +39,7 @@ public abstract class PostmanAbstractParserParser<T> extends ApiImportAbstractPa
|
|||
} else {
|
||||
request.setPath("/");
|
||||
}
|
||||
request.getBody().setType("KeyValue");
|
||||
parseBody(request.getBody(), requestDesc);
|
||||
request.setArguments(parseKeyValue(url == null ? new ArrayList<>() : url.getQuery()));
|
||||
request.setHeaders(parseKeyValue(requestDesc.getHeader()));
|
||||
|
@ -104,7 +105,7 @@ public abstract class PostmanAbstractParserParser<T> extends ApiImportAbstractPa
|
|||
|
||||
private List<KeyValue> parseKeyValue(List<PostmanKeyValue> postmanKeyValues) {
|
||||
if (postmanKeyValues == null) {
|
||||
return null;
|
||||
return new ArrayList<>();
|
||||
}
|
||||
List<KeyValue> keyValues = new ArrayList<>();
|
||||
postmanKeyValues.forEach(item -> {
|
||||
|
|
Loading…
Reference in New Issue