summaryrefslogtreecommitdiff
path: root/lib/querystring.js
diff options
context:
space:
mode:
authorMicheil Smith <micheil@brandedcode.com>2010-07-19 18:55:11 +1000
committerRyan Dahl <ry@tinyclouds.org>2010-07-19 11:07:08 -0700
commit299671b731e9ba790195b1c66ee8ee23c662abf9 (patch)
treeb1a3531c466d40556ada2768d7e381f8c8c27401 /lib/querystring.js
parentf18d9d8466a540874d7d099a77f7867306f9cc69 (diff)
downloadnode-new-299671b731e9ba790195b1c66ee8ee23c662abf9.tar.gz
querystring: Removing typecasting of numeric strings to numbers
The tests did not accurately test for a strict equality, meaning that the number == to the string.
Diffstat (limited to 'lib/querystring.js')
-rw-r--r--lib/querystring.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/querystring.js b/lib/querystring.js
index f48ee5802f..ba2b1cc9dc 100644
--- a/lib/querystring.js
+++ b/lib/querystring.js
@@ -87,7 +87,6 @@ QueryString.parse = QueryString.decode = function (qs, sep, eq) {
var end = offset + all.length == key.length;
name = name || nameInBrackets || nameIn2Quotes || nameIn1Quotes;
next = end ? value : {};
- next = next && (+next == next ? +next : next);
if (Array.isArray(res[name])) {
res[name].push(next);
res = next;