We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 064bcc2 commit 0eab82bCopy full SHA for 0eab82b
ajax.js
@@ -76,7 +76,7 @@ $._formData = function (o) {
76
var kvps = [], regEx = /%20/g, val;
77
for (var k in o) {
78
val = o[k];
79
- val = typeof val === "undefined" || val === null ? "" : val;
+ val = (val == null) ? "" : val;
80
kvps.push(encodeURIComponent(k).replace(regEx, "+") + "=" + encodeURIComponent(val.toString()).replace(regEx, "+"));
81
}
82
return kvps.join('&');
0 commit comments