fix(接口测试): 允许请求头Cookie重复
--bug=1008713 --user=赵勇 [github#7410] 请求头配置多个不同值的Cookie,执行测试后发现请求头信息中没有自动合并多个Cookie的值 #7410 https://www.tapd.cn/55049933/s/1079707
This commit is contained in:
parent
1f2b0b7de9
commit
1a20ebac8d
|
@ -770,7 +770,7 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
||||||
for (int i = 0; i < headerManager.getHeaders().size(); i++) {
|
for (int i = 0; i < headerManager.getHeaders().size(); i++) {
|
||||||
Header header = headerManager.getHeader(i);
|
Header header = headerManager.getHeader(i);
|
||||||
String headName = header.getName();
|
String headName = header.getName();
|
||||||
if (StringUtils.equals(headName, keyValue.getName())) {
|
if (StringUtils.equals(headName, keyValue.getName()) && !StringUtils.equals(headName, "Cookie")) {
|
||||||
hasHead = true;
|
hasHead = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue