We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e889d79 commit 693dc57Copy full SHA for 693dc57
src/JsonService.js
@@ -167,12 +167,19 @@ export class JsonService {
167
168
let body = "";
169
for(let key in payload) {
170
- if (body.length > 0) {
171
- body += "&";
+
+ let value = payload[key];
172
173
+ if (value) {
174
175
+ if (body.length > 0) {
176
+ body += "&";
177
+ }
178
179
+ body += encodeURIComponent(key);
180
+ body += "=";
181
+ body += encodeURIComponent(value);
182
}
- body += encodeURIComponent(key);
- body += "=";
- body += encodeURIComponent(payload[key]);
183
184
185
req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
0 commit comments