fix: #2820 try to fix 520 error code

This commit is contained in:
Yidadaa
2023-09-19 02:12:43 +08:00
parent 61ca60c550
commit adb860b464
5 changed files with 11 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ export function createWebDavClient(store: SyncStore) {
console.log("[WebDav] check", res.status, res.statusText);
return [201, 200, 404].includes(res.status);
return [201, 200, 404, 401].includes(res.status);
} catch (e) {
console.error("[WebDav] failed to check", e);
}