diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-03-05 17:07:02 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-03-05 17:07:02 -0800 |
commit | b9cd3363efc6d249c86ebc2a8e5b523c968aaac9 (patch) | |
tree | 0ea504e0c5f9b403f14ab84bf624c573183394d3 /lib/querystring.js | |
parent | 5c78c45fa3cb1ad91ec96eef6302e7f1c4b762af (diff) | |
download | nodejs-b9cd3363efc6d249c86ebc2a8e5b523c968aaac9.tar.gz nodejs-b9cd3363efc6d249c86ebc2a8e5b523c968aaac9.tar.bz2 nodejs-b9cd3363efc6d249c86ebc2a8e5b523c968aaac9.zip |
Bugfix in querystring
Diffstat (limited to 'lib/querystring.js')
-rw-r--r-- | lib/querystring.js | 2 |
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); |