fix(接口测试): 新建mock时请求体默认类型从json改为form

新建mock时请求体默认类型从json改为form
This commit is contained in:
song-tianyang 2022-02-25 15:49:00 +08:00 committed by CountryBuilder
parent 44aade3901
commit c5362a6286
2 changed files with 4 additions and 2 deletions

View File

@ -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) {

View File

@ -93,7 +93,7 @@ export default {
arguments: [],
rest: [],
body: {
type: 'JSON',
type: 'Form Data',
binary: [],
kvs: [],
}