some tweaks

Former-commit-id: edccade28fa0f726ea610be43a5e0a11e492a912
This commit is contained in:
Henrique Dias
2017-01-04 17:58:14 +00:00
parent 8cfef6fa93
commit 543c43517d
3 changed files with 90 additions and 95 deletions

View File

@@ -138,6 +138,7 @@ webdav.convertURL = function (url) {
webdav.move = function (oldLink, newLink) {
return new Promise((resolve, reject) => {
let request = new XMLHttpRequest();
request.open('MOVE', webdav.convertURL(oldLink), true);
request.setRequestHeader('Destination', webdav.convertURL(newLink));
request.onload = () => {