Skip to content
Snippets Groups Projects
Commit c2019825 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Updated davclient.js

Fix for MKCOL in edge
parent 63b99b61
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