Skip to content

Commit e771c0f

Browse files
authored
Update common-node.js
1 parent 9962d31 commit e771c0f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/common-node.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,7 @@ exports.toUInt32 = toUInt32
5252
* @return {Object}
5353
*/
5454
exports.querystringParse = function (q) {
55-
var saved = querystring.unescape
56-
querystring.unescape = unescape // global
57-
var ret = querystring.parse(q)
58-
querystring.unescape = saved
59-
return ret
55+
return querystring.parse(q, { decodeURIComponent: unescape })
6056
}
6157

6258
/**

0 commit comments

Comments
 (0)