nock 13.5.2 → 13.5.3
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/interceptor.js +1 -1
- package/package.json +1 -1
package/lib/interceptor.js
CHANGED
|
@@ -510,7 +510,7 @@ module.exports = class Interceptor {
|
|
|
510
510
|
strFormattingFn = common.percentDecode
|
|
511
511
|
}
|
|
512
512
|
|
|
513
|
-
if (queries instanceof URLSearchParams) {
|
|
513
|
+
if (queries instanceof URLSearchParams || typeof queries === 'string') {
|
|
514
514
|
// Normalize the data into the shape that is matched against.
|
|
515
515
|
// Duplicate keys are handled by combining the values into an array.
|
|
516
516
|
queries = querystring.parse(queries.toString())
|