summaryrefslogtreecommitdiffstats
path: root/core/js/files/iedavclient.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/files/iedavclient.js')
-rw-r--r--core/js/files/iedavclient.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/js/files/iedavclient.js b/core/js/files/iedavclient.js
index e5b3968a197..9e83f5b9a22 100644
--- a/core/js/files/iedavclient.js
+++ b/core/js/files/iedavclient.js
@@ -39,7 +39,12 @@
for(ii in headers) {
xhr.setRequestHeader(ii, headers[ii]);
}
- xhr.send(body);
+
+ if (body === undefined) {
+ xhr.send();
+ } else {
+ xhr.send(body);
+ }
return new Promise(function(fulfill, reject) {