From 4a0758db2435602c35313c1695e590b3e59c6568 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sat, 23 Apr 2016 23:02:52 -0700 Subject: [PATCH] Fix unnecessary escape --- lib/common-node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common-node.js b/lib/common-node.js index 7573367..f5d5417 100644 --- a/lib/common-node.js +++ b/lib/common-node.js @@ -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() })