diff --git a/app/utils/cloud/webdav.ts b/app/utils/cloud/webdav.ts index bc569de0ec4..e01c193fea2 100644 --- a/app/utils/cloud/webdav.ts +++ b/app/utils/cloud/webdav.ts @@ -18,8 +18,15 @@ export function createWebDavClient(store: SyncStore) { method: "MKCOL", headers: this.headers(), }); - console.log("[WebDav] check", res.status, res.statusText); - return [201, 200, 404, 301, 302, 307, 308].includes(res.status); + const success = [201, 200, 404, 405, 301, 302, 307, 308].includes( + res.status, + ); + console.log( + `[WebDav] check ${success ? "success" : "failed"}, ${res.status} ${ + res.statusText + }`, + ); + return success; } catch (e) { console.error("[WebDav] failed to check", e); }