feat: support more http status check for webdav

This commit is contained in:
Yifei Zhang 2023-09-20 17:47:35 +08:00 committed by GitHub
parent 26e50cefea
commit 23eb7732d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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