From 86054dea95389f6a39c21607193dcf5d04ef64a9 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 4 Aug 2023 14:48:12 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E4=BC=98=E5=8C=96=E8=87=AA=E5=AE=9A=E4=B9=89http=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=8C=B9=E9=85=8D=E7=8E=AF=E5=A2=83=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1028304 --user=王孝刚 【接口测试】github#25965,自定义请求-引用场景环境时,若环境启用条件为模块,则环境里的请求头不能正常应用到自定义请求里 https://www.tapd.cn/55049933/s/1401038 --- .../metersphere/api/dto/definition/request/ParameterConfig.java | 1 + 1 file changed, 1 insertion(+) diff --git a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/ParameterConfig.java b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/ParameterConfig.java index 71849ffbd9..382a995952 100644 --- a/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/ParameterConfig.java +++ b/api-test/backend/src/main/java/io/metersphere/api/dto/definition/request/ParameterConfig.java @@ -121,6 +121,7 @@ public class ParameterConfig extends MsParameter { public HttpConfig matchConfig(MsHTTPSamplerProxy samplerProxy, HttpConfig httpConfig) { boolean isNext = true; + httpConfig.setSocket(null); if (CollectionUtils.isNotEmpty(httpConfig.getConditions())) { for (HttpConfigCondition item : httpConfig.getConditions()) { if (item.getType().equals(ConditionType.PATH.name())) {