Merge branch 'master' of https://github.com/metersphere/server
This commit is contained in:
commit
f316d99141
|
@ -871,6 +871,9 @@ class JMXGenerator {
|
|||
this.addEnvironments(environment.headers, scenario.headers)
|
||||
}
|
||||
let headers = this.filterKV(scenario.headers);
|
||||
headers.forEach(h => {
|
||||
h.value = calculate(h.value);
|
||||
});
|
||||
if (headers.length > 0) {
|
||||
let name = scenario.name + " Headers"
|
||||
threadGroup.put(new HeaderManager(name, headers));
|
||||
|
@ -881,6 +884,9 @@ class JMXGenerator {
|
|||
let name = request.name + " Headers";
|
||||
this.addBodyFormat(request);
|
||||
let headers = this.filterKV(request.headers);
|
||||
headers.forEach(h => {
|
||||
h.value = calculate(h.value);
|
||||
});
|
||||
if (headers.length > 0) {
|
||||
httpSamplerProxy.put(new HeaderManager(name, headers));
|
||||
}
|
||||
|
@ -931,6 +937,9 @@ class JMXGenerator {
|
|||
let body = [];
|
||||
if (request.body.isKV()) {
|
||||
body = this.filterKV(request.body.kvs);
|
||||
body.forEach(arg => {
|
||||
arg.value = calculate(arg.value);
|
||||
});
|
||||
} else {
|
||||
httpSamplerProxy.boolProp('HTTPSampler.postBodyRaw', true);
|
||||
body.push({name: '', value: request.body.raw, encode: false});
|
||||
|
|
Loading…
Reference in New Issue