修复端口bug

This commit is contained in:
q4speed 2020-05-15 11:21:51 +08:00
parent 26dae54302
commit d02aca33af
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ export class HTTPSamplerProxy extends DefaultTestElement {
this.stringProp("HTTPSampler.protocol", this.request.protocol.split(":")[0]);
this.stringProp("HTTPSampler.path", this.request.pathname);
this.stringProp("HTTPSampler.method", this.request.method);
if (this.request.port) {
if (!this.request.port) {
this.stringProp("HTTPSampler.port", "");
} else {
this.stringProp("HTTPSampler.port", this.request.port);