From 1a20ebac8d4db50e2a6190fa6b84900e2a41cfad Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Fri, 10 Dec 2021 15:38:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=85=81=E8=AE=B8=E8=AF=B7=E6=B1=82=E5=A4=B4Cookie=E9=87=8D?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1008713 --user=赵勇 [github#7410] 请求头配置多个不同值的Cookie,执行测试后发现请求头信息中没有自动合并多个Cookie的值 #7410 https://www.tapd.cn/55049933/s/1079707 --- .../api/dto/definition/request/sampler/MsHTTPSamplerProxy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java b/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java index e8e30606b4..3c957206e5 100644 --- a/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java +++ b/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java @@ -770,7 +770,7 @@ public class MsHTTPSamplerProxy extends MsTestElement { for (int i = 0; i < headerManager.getHeaders().size(); i++) { Header header = headerManager.getHeader(i); String headName = header.getName(); - if (StringUtils.equals(headName, keyValue.getName())) { + if (StringUtils.equals(headName, keyValue.getName()) && !StringUtils.equals(headName, "Cookie")) { hasHead = true; break; }