fix: 接口定义har格式导入无cmotentType报错误
This commit is contained in:
parent
4688324abc
commit
9afe9da9c5
|
@ -63,6 +63,10 @@ public abstract class ApiImportAbstractParser<T> implements ApiImportParser<T> {
|
|||
|
||||
protected String getBodyType(String contentType) {
|
||||
String bodyType = "";
|
||||
if (StringUtils.isBlank(contentType)) {
|
||||
return bodyType;
|
||||
}
|
||||
|
||||
switch (contentType) {
|
||||
case "application/x-www-form-urlencoded":
|
||||
bodyType = Body.WWW_FROM;
|
||||
|
|
Loading…
Reference in New Issue