Merge pull request #22274 from owncloud/fix_21710
Updated davclient.js to support MKCOL in edge
This commit is contained in:
commit
9e07fe289d
1 changed files with 7 additions and 1 deletions
8
core/vendor/davclient.js/lib/client.js
vendored
8
core/vendor/davclient.js/lib/client.js
vendored
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue