fix(接口定义): 修复自定义请求自己拼接协议的缺陷 (#17600)
Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
parent
c930cde622
commit
4a99e6637a
|
@ -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