[ARVADOS-WORKBENCH2] updated: 1.4.1-340-g26838c69

Git user git at public.arvados.org
Mon May 18 13:42:55 UTC 2020


Summary of changes:
 src/common/webdav.ts | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

       via  26838c693d593cc17179b7aed36763ca53871884 (commit)
      from  fc898afbfa340c57062887083c96bc197fc283d0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 26838c693d593cc17179b7aed36763ca53871884
Author: Lucas Di Pentima <lucas at di-pentima.com.ar>
Date:   Mon May 18 10:42:12 2020 -0300

    16118: Fixes webdav tests by handling baseURLs with or without trailing slash.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas at di-pentima.com.ar>

diff --git a/src/common/webdav.ts b/src/common/webdav.ts
index 3f55a841..11a48f32 100644
--- a/src/common/webdav.ts
+++ b/src/common/webdav.ts
@@ -61,7 +61,11 @@ export class WebDAV {
     private request = (config: RequestConfig) => {
         return new Promise<XMLHttpRequest>((resolve, reject) => {
             const r = this.createRequest();
-            r.open(config.method, `${this.defaults.baseURL}/${config.url}`);
+            this.defaults.baseURL = this.defaults.baseURL.replace(/\/+$/, '')
+            r.open(config.method,
+                `${this.defaults.baseURL
+                    ? this.defaults.baseURL+'/'
+                    : ''}${config.url}`);
             const headers = { ...this.defaults.headers, ...config.headers };
             Object
                 .keys(headers)

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list