diff --git a/benchmark/_http-benchmarkers.js b/benchmark/_http-benchmarkers.js index 7dd06be2655744..821dab2d55e683 100644 --- a/benchmark/_http-benchmarkers.js +++ b/benchmark/_http-benchmarkers.js @@ -64,6 +64,9 @@ class WrkBenchmarker { '-t', 8, `http://127.0.0.1:${options.port}${options.path}`, ]; + for (const field in options.headers) { + args.push('-H', `${field}: ${options.headers[field]}`); + } const child = child_process.spawn(this.executable, args); return child; }