fix(接口测试): DELETE类型导致url地址拼接错误

--bug=1045870 --user=王旭 【接口测试】github#32855自定义HTTP请求,DELETE类型时,会自带https:/的URL参数,导致URL地址拼接有误 https://www.tapd.cn/55049933/s/1578851
This commit is contained in:
WangXu10 2024-09-14 14:13:06 +08:00 committed by Craftsman
parent fcf2004458
commit 4cb6280cfc
1 changed files with 0 additions and 5 deletions

View File

@ -404,11 +404,6 @@ public class MsHTTPSamplerProxy extends MsTestElement {
}
if (CollectionUtils.isNotEmpty(this.getArguments())) {
String path = postQueryParameters(envPath);
if (HTTPConstants.DELETE.equals(this.getMethod()) && !path.startsWith("${") && !path.startsWith("/${")) {
if (!path.startsWith("/")) {
path = "/" + path;
}
}
sampler.setProperty(HTTPSamplerBase.PATH, path);
}
} else {