17337: Added unit tests and directory names with non trivial names
[arvados-workbench2.git] / src / common / webdav.ts
index 0b77f8c33262e9b7b0b284b4da682d6ec58ceb85..758a5e18e1e9ad44015b9a802d0e532e70ba3d76 100644 (file)
@@ -79,12 +79,6 @@ export class WebDAV {
                     ? this.defaults.baseURL+'/'
                     : ''}${customEncodeURI(config.url)}`);
 
-            if (config.headers && config.headers.Destination) {
-                const regexp = /(http[s]?:\/\/)?([^\/\s]+\/)(.*)/;
-                const match = decodeURIComponent(config.headers.Destination).match(regexp) || {};
-                config.headers.Destination = `${match[1]}${match[2]}${customEncodeURI(match[3])}`;
-            }
-
             const headers = { ...this.defaults.headers, ...config.headers };
             Object
                 .keys(headers)