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:
parent
fcf2004458
commit
4cb6280cfc
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue