Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added a numeric key in array stringify by default to make sure data i…

…s parsable again
  • Loading branch information...
commit 81fa1c7a013711bd3b81b7db1cc4c8b9cb86322a 1 parent 199c17d
Jean-Tiare Le Bigot authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/querystring.js
View
2  lib/querystring.js
@@ -192,7 +192,7 @@ function stringifyArray(arr, prefix) {
var ret = [];
if (!prefix) throw new TypeError('stringify expects an object');
for (var i = 0; i < arr.length; i++) {
- ret.push(stringify(arr[i], prefix + '[]'));
+ ret.push(stringify(arr[i], prefix + '['+i+']'));
}
return ret.join('&');
}
Please sign in to comment.
Something went wrong with that request. Please try again.