fix(接口测试): 新建mock时请求体默认类型从json改为form
新建mock时请求体默认类型从json改为form
This commit is contained in:
parent
44aade3901
commit
c5362a6286
|
@ -1202,7 +1202,9 @@ public class MockConfigService {
|
|||
response.setStatus(responseDTO.getReturnCode());
|
||||
if (MapUtils.isNotEmpty(responseDTO.getHeaders())) {
|
||||
for (Map.Entry<String, String> entry : responseDTO.getHeaders().entrySet()) {
|
||||
response.setHeader(entry.getKey(), entry.getValue());
|
||||
if(StringUtils.isNotEmpty(entry.getKey())){
|
||||
response.setHeader(entry.getKey(), entry.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
|
|
@ -93,7 +93,7 @@ export default {
|
|||
arguments: [],
|
||||
rest: [],
|
||||
body: {
|
||||
type: 'JSON',
|
||||
type: 'Form Data',
|
||||
binary: [],
|
||||
kvs: [],
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue