Skip to content
Snippets Groups Projects
Commit 9e07fe28 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #22274 from owncloud/fix_21710

Updated davclient.js to support MKCOL in edge
parents c1d21cf8 c2019825
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment