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

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

View File

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