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 b0c4ffb commit 86fc4b4Copy full SHA for 86fc4b4
src/core/lib/request.js
@@ -8,6 +8,7 @@ export default function Request(options) {
8
return new Promise(function(resolve, reject) {
9
let queryParams;
10
let serialize = function(obj, prefix) {
11
+
12
let str = [],
13
p;
14
if (typeof obj === "object" && obj.length !== undefined) {
@@ -20,7 +21,7 @@ export default function Request(options) {
20
21
v = obj[p];
22
str.push((v !== null && typeof v === "object" && p !== 'query') ?
23
serialize(v, k) :
- k + "=" + (p !== 'query' ? encodeURIComponent(v) : JSON.stringify(v)));
24
+ k + "=" + encodeURIComponent(p !== 'query' ? v : JSON.stringify(v)));
25
}
26
27
return str.join("&");
0 commit comments