Skip to content

Commit

Permalink
feat: support more http status check for webdav
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa committed Sep 20, 2023
1 parent 26e50ce commit 23eb773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils/cloud/webdav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 23eb773

Please sign in to comment.