fix(接口调试): 修复body内容无法传递问题

This commit is contained in:
fit2-zhao 2020-09-07 15:59:44 +08:00
parent 20f89c0017
commit 2b462c4f1c
1 changed files with 2 additions and 2 deletions

View File

@ -550,7 +550,7 @@ export class Body extends BaseConfig {
export class KeyValue extends BaseConfig {
constructor() {
let options, key, value, type, enable, uuid;
let options, key, value, type, enable =true, uuid;
if (arguments.length === 1) {
options = arguments[0];
}
@ -1038,7 +1038,7 @@ class JMXGenerator {
this.addRequestBodyFile(httpSamplerProxy, request, testId);
} else {
httpSamplerProxy.boolProp('HTTPSampler.postBodyRaw', true);
body.push({name: '', value: request.body.raw, encode: false});
body.push({name: '', value: request.body.raw, encode: false,enable:true});
}
httpSamplerProxy.add(new HTTPSamplerArguments(body));