From fd8d0a1746adc3c337ba9bb9dcefe525d7a19d40 Mon Sep 17 00:00:00 2001 From: butterfly Date: Fri, 12 Apr 2024 14:20:15 +0800 Subject: [PATCH] feat: fix the logtics of client joining webdav url --- app/utils/cloud/webdav.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/cloud/webdav.ts b/app/utils/cloud/webdav.ts index f7d48dd03..5b0f3b123 100644 --- a/app/utils/cloud/webdav.ts +++ b/app/utils/cloud/webdav.ts @@ -75,7 +75,7 @@ export function createWebDavClient(store: SyncStore) { } let url; - if (proxyUrl.length > 0 || proxyUrl === "/") { + if (proxyUrl.length > 0) { let u = new URL(proxyUrl + "api/webdav/" + path); // add query params u.searchParams.append("endpoint", config.endpoint);