yamltest 1.2.0 → 1.2.1
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/package.json +1 -1
- package/src/core.js +1 -1
package/package.json
CHANGED
package/src/core.js
CHANGED
|
@@ -1193,7 +1193,7 @@ function parseCurlResponse(curlOutput) {
|
|
|
1193
1193
|
|
|
1194
1194
|
// Parse status line
|
|
1195
1195
|
if (lines.length > 0 && lines[0].startsWith('HTTP/')) {
|
|
1196
|
-
const statusMatch = lines[0].match(/HTTP\/\d
|
|
1196
|
+
const statusMatch = lines[0].match(/HTTP\/\d+(?:\.\d+)?\s+(\d+)/);
|
|
1197
1197
|
if (statusMatch) {
|
|
1198
1198
|
statusCode = parseInt(statusMatch[1], 10);
|
|
1199
1199
|
}
|