Skip to content

Commit 714400a

Browse files
authored
use correct API signature in querystring methods
1 parent e771c0f commit 714400a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/common-node.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ exports.toUInt32 = toUInt32
5252
* @return {Object}
5353
*/
5454
exports.querystringParse = function (q) {
55-
return querystring.parse(q, { decodeURIComponent: unescape })
55+
return querystring.parse(q, null, null, { decodeURIComponent: unescape })
5656
}
5757

5858
/**
@@ -62,7 +62,7 @@ exports.querystringParse = function (q) {
6262
* @return {string}
6363
*/
6464
exports.querystringStringify = function (obj) {
65-
var ret = querystring.stringify(obj, { encodeURIComponent: escape })
65+
var ret = querystring.stringify(obj, null, null, { encodeURIComponent: escape })
6666
ret = ret.replace(/[@*/+]/g, function (char) {
6767
// `escape` doesn't encode the characters @*/+ so we do it manually
6868
return '%' + char.charCodeAt(0).toString(16).toUpperCase()

0 commit comments

Comments
 (0)