loadtest 8.0.6 → 8.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/headers.js +2 -2
- package/package.json +1 -1
package/lib/headers.js
CHANGED
|
@@ -11,7 +11,7 @@ export function addHeaders(rawHeaders, headers) {
|
|
|
11
11
|
} else if (typeof rawHeaders == 'string') {
|
|
12
12
|
addHeader(rawHeaders, headers);
|
|
13
13
|
} else {
|
|
14
|
-
console.error('Invalid header structure %j, it should be an array');
|
|
14
|
+
console.error('Invalid header structure %j, it should be an array', rawHeaders);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -20,7 +20,7 @@ export function addHeaders(rawHeaders, headers) {
|
|
|
20
20
|
*/
|
|
21
21
|
function addHeader(rawHeader, headers) {
|
|
22
22
|
if (!rawHeader.includes(':')) {
|
|
23
|
-
return console.error('Invalid header %s, it should be in the form -H key:value');
|
|
23
|
+
return console.error('Invalid header %s, it should be in the form -H key:value', rawHeader);
|
|
24
24
|
}
|
|
25
25
|
const index = rawHeader.indexOf(':');
|
|
26
26
|
const key = rawHeader.substr(0, index);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "loadtest",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Run load tests for your web application. Mostly ab-compatible interface, with an option to force requests per second. Includes an API for automated load testing.",
|
|
6
6
|
"homepage": "https://github.com/alexfernandez/loadtest",
|