style(接口自动化): http协议变量端口问题修复

This commit is contained in:
fit2-zhao 2021-06-02 16:57:01 +08:00 committed by fit2-zhao
parent eab413dd6b
commit 9d311c8df7
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ public class MsHTTPSamplerProxy extends MsTestElement {
sampler.setPath(url);
}
if (StringUtils.isNotEmpty(this.getPort()) && this.getPort().startsWith("${")) {
url.replaceAll(this.getPort(), "10990");
url = url.replaceAll(this.getPort(), "10990");
}
try {
URL urlObject = new URL(url);