We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40707a1 commit 9962d31Copy full SHA for 9962d31
lib/common-node.js
@@ -66,13 +66,10 @@ exports.querystringParse = function (q) {
66
* @return {string}
67
*/
68
exports.querystringStringify = function (obj) {
69
- var saved = querystring.escape
70
- querystring.escape = escape // global
71
- var ret = querystring.stringify(obj)
+ var ret = querystring.stringify(obj, { encodeURIComponent: escape })
72
ret = ret.replace(/[@*/+]/g, function (char) {
73
// `escape` doesn't encode the characters @*/+ so we do it manually
74
return '%' + char.charCodeAt(0).toString(16).toUpperCase()
75
})
76
- querystring.escape = saved
77
return ret
78
}
0 commit comments