yamltest 1.0.4 → 1.0.5
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
|
@@ -612,7 +612,7 @@ async function executeHttpTest(test) {
|
|
|
612
612
|
test.http.url = `${parsedUrl.protocol}//${parsedUrl.host}`;
|
|
613
613
|
// Prepend the extracted path to any explicit path (avoid double slashes)
|
|
614
614
|
const explicitPath = test.http.path || '';
|
|
615
|
-
test.http.path = urlPath.replace(/\/$/, '') + (explicitPath.startsWith('/') ? explicitPath : '/' + explicitPath);
|
|
615
|
+
test.http.path = urlPath.replace(/\/$/, '') + (explicitPath ? (explicitPath.startsWith('/') ? explicitPath : '/' + explicitPath) : '');
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
|