chore: optimize for test auth

This commit is contained in:
sigoden
2023-02-21 16:10:51 +08:00
parent 6d9758c71d
commit ad0be71557
6 changed files with 32 additions and 18 deletions

View File

@@ -138,9 +138,6 @@ impl GuardType {
pub fn is_reject(&self) -> bool {
*self == GuardType::Reject
}
pub fn is_readwrite(&self) -> bool {
*self == GuardType::ReadWrite
}
}
fn sanitize_path(path: &str, uri_prefix: &str) -> String {