From 8b2041bbd958df26ef03176319154e46802a8f31 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Tue, 11 Aug 2020 10:05:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AF=B7=E6=B1=82Headers=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/business/components/api/test/model/ScenarioModel.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/business/components/api/test/model/ScenarioModel.js b/frontend/src/business/components/api/test/model/ScenarioModel.js index a990906ade..e970b99ceb 100644 --- a/frontend/src/business/components/api/test/model/ScenarioModel.js +++ b/frontend/src/business/components/api/test/model/ScenarioModel.js @@ -871,6 +871,9 @@ class JMXGenerator { this.addEnvironments(environment.headers, scenario.headers) } let headers = this.filterKV(scenario.headers); + headers.forEach(h => { + h.value = calculate(h.value); + }); if (headers.length > 0) { let name = scenario.name + " Headers" threadGroup.put(new HeaderManager(name, headers)); @@ -881,6 +884,9 @@ class JMXGenerator { let name = request.name + " Headers"; this.addBodyFormat(request); let headers = this.filterKV(request.headers); + headers.forEach(h => { + h.value = calculate(h.value); + }); if (headers.length > 0) { httpSamplerProxy.put(new HeaderManager(name, headers)); }