X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/eadb2e4a0005b89cb2ca1977bb6f53652e911249..17e84b99a1d112fc9b1f20929c538d9d10d14f94:/src/common/webdav.ts diff --git a/src/common/webdav.ts b/src/common/webdav.ts index 54601f16..758a5e18 100644 --- a/src/common/webdav.ts +++ b/src/common/webdav.ts @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { escapeHashIfRequired } from "./url"; +import { customEncodeURI } from "./url"; export class WebDAV { @@ -77,7 +77,8 @@ export class WebDAV { r.open(config.method, `${this.defaults.baseURL ? this.defaults.baseURL+'/' - : ''}${escapeHashIfRequired(config.url, encodeURI)}`); + : ''}${customEncodeURI(config.url)}`); + const headers = { ...this.defaults.headers, ...config.headers }; Object .keys(headers)