Fix unnecessary escape

This commit is contained in:
Feross Aboukhadijeh 2016-04-23 23:02:52 -07:00
parent 721b504e25
commit 4a0758db24

View File

@ -56,7 +56,7 @@ exports.querystringStringify = function (obj) {
var saved = querystring.escape
querystring.escape = escape // global
var ret = querystring.stringify(obj)
ret = ret.replace(/[\@\*\/\+]/g, function (char) {
ret = ret.replace(/[@\*\/\+]/g, function (char) {
// `escape` doesn't encode the characters @*/+ so we do it manually
return '%' + char.charCodeAt(0).toString(16).toUpperCase()
})