提交 dfb1eb02 编写于 作者: C Captain.B

Merge remote-tracking branch 'origin/master'

......@@ -224,10 +224,10 @@ export class HTTPSamplerProxy extends DefaultTestElement {
constructor(testName, request) {
super('HTTPSamplerProxy', 'HttpTestSampleGui', 'HTTPSamplerProxy', testName);
this.request = request || {};
this.stringProp("HTTPSampler.domain", this.request.hostname);
this.stringProp("HTTPSampler.protocol", this.request.protocol.split(":")[0]);
this.stringProp("HTTPSampler.path", this.request.pathname);
// this.stringProp("HTTPSampler.domain", this.request.hostname);
// this.stringProp("HTTPSampler.protocol", this.request.protocol.split(":")[0]);
//主机名和端口添加在 path 中,支持变量的形式
this.stringProp("HTTPSampler.path", this.request.url);
this.stringProp("HTTPSampler.method", this.request.method);
this.stringProp("HTTPSampler.contentEncoding", this.request.encoding, "UTF-8");
if (!this.request.port) {
......
......@@ -393,6 +393,7 @@ class JMXRequest {
this.pathname = decodeURIComponent(url.pathname);
this.port = url.port;
this.protocol = url.protocol.split(":")[0];
this.url = request.url;
if (this.method.toUpperCase() !== "GET") {
this.pathname += url.search.replace('&', '&');
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册