Skip to content
Browse files

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

…s parsable again
  • Loading branch information...
1 parent 199c17d commit 81fa1c7a013711bd3b81b7db1cc4c8b9cb86322a Jean-Tiare Le Bigot committed
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('&');
}

0 comments on commit 81fa1c7

Please sign in to comment.
Something went wrong with that request. Please try again.