fix(接口定义): 执行问题修复

This commit is contained in:
fit2-zhao 2021-03-31 16:52:59 +08:00
parent f768f9aac8
commit 89c7203362
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ public class MsHTTPSamplerProxy extends MsTestElement {
} }
} else { } else {
String url = this.getUrl(); String url = this.getUrl();
if (!url.startsWith("http://") && !url.startsWith("https://")) { if (StringUtils.isNotEmpty(url) && !url.startsWith("http://") && !url.startsWith("https://")) {
url = "http://" + url; url = "http://" + url;
} }
if (StringUtils.isNotEmpty(this.getPort()) && this.getPort().startsWith("${")) { if (StringUtils.isNotEmpty(this.getPort()) && this.getPort().startsWith("${")) {