summaryrefslogtreecommitdiff
path: root/lib/querystring.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-03-05 17:07:02 -0800
committerRyan Dahl <ry@tinyclouds.org>2010-03-05 17:07:02 -0800
commitb9cd3363efc6d249c86ebc2a8e5b523c968aaac9 (patch)
tree0ea504e0c5f9b403f14ab84bf624c573183394d3 /lib/querystring.js
parent5c78c45fa3cb1ad91ec96eef6302e7f1c4b762af (diff)
downloadnodejs-b9cd3363efc6d249c86ebc2a8e5b523c968aaac9.tar.gz
nodejs-b9cd3363efc6d249c86ebc2a8e5b523c968aaac9.tar.bz2
nodejs-b9cd3363efc6d249c86ebc2a8e5b523c968aaac9.zip
Bugfix in querystring
Diffstat (limited to 'lib/querystring.js')
-rw-r--r--lib/querystring.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/querystring.js b/lib/querystring.js
index d258fc297..ef50cafa4 100644
--- a/lib/querystring.js
+++ b/lib/querystring.js
@@ -68,7 +68,7 @@ QueryString.stringify = function (obj, sep, eq, name) {
};
QueryString.parseQuery = QueryString.parse = function (qs, sep, eq) {
- return qs
+ return (qs || '')
.split(sep||"&")
.map(pieceParser(eq||"="))
.reduce(mergeParams);