diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-10 13:52:54 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-10 13:52:54 +0100 |
commit | c201982598978cb45934e1eff61d94ef956e2520 (patch) | |
tree | 19af0e23fe39842ab4f3b79ae769119f5370abe3 /core/vendor | |
parent | 63b99b614c53c903148f4a7ff0c02ca625aa9890 (diff) | |
download | nextcloud-server-c201982598978cb45934e1eff61d94ef956e2520.tar.gz nextcloud-server-c201982598978cb45934e1eff61d94ef956e2520.zip |
Updated davclient.js
Fix for MKCOL in edge
Diffstat (limited to 'core/vendor')
-rw-r--r-- | core/vendor/davclient.js/lib/client.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/vendor/davclient.js/lib/client.js b/core/vendor/davclient.js/lib/client.js index 89c11516a38..d3d0a7062c0 100644 --- a/core/vendor/davclient.js/lib/client.js +++ b/core/vendor/davclient.js/lib/client.js @@ -172,7 +172,13 @@ dav.Client.prototype = { for(ii in headers) { xhr.setRequestHeader(ii, headers[ii]); } - xhr.send(body); + + // Work around for edge + if (body === undefined) { + xhr.send(); + } else { + xhr.send(body); + } return new Promise(function(fulfill, reject) { |