From 2b462c4f1c3d43ea90bc352370ed87274228c4ae Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Mon, 7 Sep 2020 15:59:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E8=B0=83=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbody=E5=86=85=E5=AE=B9=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E4=BC=A0=E9=80=92=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/business/components/api/test/model/ScenarioModel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/api/test/model/ScenarioModel.js b/frontend/src/business/components/api/test/model/ScenarioModel.js index a5566121f1..65257f2cec 100644 --- a/frontend/src/business/components/api/test/model/ScenarioModel.js +++ b/frontend/src/business/components/api/test/model/ScenarioModel.js @@ -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));