fix(接口定义): 修复自定义请求自己拼接协议的缺陷 (#17601)

Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
MeterSphere Bot 2022-08-31 13:34:08 +08:00 committed by GitHub
parent 189489a7e4
commit 7146df14e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -398,9 +398,6 @@ public class MsHTTPSamplerProxy extends MsTestElement {
url = url.replace(this.getPort(), "10990"); url = url.replace(this.getPort(), "10990");
} }
try { try {
if (!StringUtils.startsWithAny(url, "http://", "https://")) {
url = "http://" + url;
}
URL urlObject = new URL(url); URL urlObject = new URL(url);
sampler.setDomain(URLDecoder.decode(urlObject.getHost(), "UTF-8")); sampler.setDomain(URLDecoder.decode(urlObject.getHost(), "UTF-8"));