added multi argument brackets

This commit is contained in:
Shlomo Dalezman 2015-02-02 13:38:12 -05:00
parent 45ee2751e7
commit da4ef441fd
2 changed files with 2 additions and 2 deletions

View file

@ -693,7 +693,7 @@ var m = (function app(window, undefined) {
var pair = value != null && (valueType === OBJECT) ?
buildQueryString(value, key) :
valueType === ARRAY ?
value.map(function(item) {return encodeURIComponent(key) + "=" + encodeURIComponent(item)}).join("&") :
value.map(function(item) {return encodeURIComponent(key + "[]") + "=" + encodeURIComponent(item)}).join("&") :
encodeURIComponent(key) + "=" + encodeURIComponent(value)
str.push(pair)
}