fix(接口测试): 场景url拼接不正确

This commit is contained in:
chenjianxing 2020-10-28 19:30:15 +08:00
parent 29cd976431
commit d564296a97
1 changed files with 2 additions and 2 deletions

View File

@ -1001,8 +1001,8 @@ class JMXHttpRequest {
this.domain = environment.config.httpConfig.domain; this.domain = environment.config.httpConfig.domain;
this.port = environment.config.httpConfig.port; this.port = environment.config.httpConfig.port;
this.protocol = environment.config.httpConfig.protocol; this.protocol = environment.config.httpConfig.protocol;
let url = new URL(environment.config.httpConfig.protocol + "://" + environment.config.httpConfig.socket); let envPath = environment.config.httpConfig.protocol + "://" + environment.config.httpConfig.socket;
this.path = this.getPostQueryParameters(request, decodeURIComponent(url.pathname + (request.path ? request.path : ''))); this.path = this.getPostQueryParameters(request, decodeURIComponent(envPath + (request.path ? request.path : '')));
} }
this.connectTimeout = request.connectTimeout; this.connectTimeout = request.connectTimeout;
this.responseTimeout = request.responseTimeout; this.responseTimeout = request.responseTimeout;