fix(接口定义): 修复自定义请求自己拼接协议的缺陷 (#17601)
Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
parent
189489a7e4
commit
7146df14e2
|
@ -398,9 +398,6 @@ public class MsHTTPSamplerProxy extends MsTestElement {
|
|||
url = url.replace(this.getPort(), "10990");
|
||||
}
|
||||
try {
|
||||
if (!StringUtils.startsWithAny(url, "http://", "https://")) {
|
||||
url = "http://" + url;
|
||||
}
|
||||
URL urlObject = new URL(url);
|
||||
sampler.setDomain(URLDecoder.decode(urlObject.getHost(), "UTF-8"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue