Skip to content

Commit 7612317

Browse files
committed
Fix problem serializing objects with null prototype
1 parent 6bd3039 commit 7612317

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var param = function (a) {
2525
obj[i]
2626
);
2727
}
28-
} else if (String(obj) === '[object Object]') {
28+
} else if (Object.prototype.toString.call(obj) === '[object Object]') {
2929
for (key in obj) {
3030
buildParams(prefix + '[' + key + ']', obj[key]);
3131
}

0 commit comments

Comments
 (0)