mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 00:59:02 +03:00
chore: optimize for test auth
This commit is contained in:
@@ -149,10 +149,7 @@ impl Server {
|
||||
.map(|(k, v)| (k.to_string(), v.to_string()))
|
||||
.collect();
|
||||
|
||||
if query_params.contains_key("auth") {
|
||||
if !guard_type.is_readwrite() {
|
||||
self.auth_reject(&mut res);
|
||||
}
|
||||
if method.as_str() == "WRITEABLE" {
|
||||
return Ok(res);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user