diff --git a/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java b/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java index d8e676db68..0210e8c337 100644 --- a/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java +++ b/backend/src/main/java/io/metersphere/api/dto/definition/request/sampler/MsHTTPSamplerProxy.java @@ -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"));