refactor: make logout works on safari (#442)

This commit is contained in:
sigoden
2024-08-27 16:07:17 +08:00
committed by GitHub
parent 964bf61c37
commit 5b338c40da
5 changed files with 44 additions and 19 deletions

View File

@@ -429,7 +429,8 @@ fn is_readonly_method(method: &Method) -> bool {
|| method == Method::OPTIONS
|| method == Method::HEAD
|| method.as_str() == "PROPFIND"
|| method.as_str() == "AUTH"
|| method.as_str() == "CHECKAUTH"
|| method.as_str() == "LOGOUT"
}
fn strip_prefix<'a>(search: &'a [u8], prefix: &[u8]) -> Option<&'a [u8]> {