diff --git a/src/modes/server/common.rs b/src/modes/server/common.rs index 518c0c4..6034468 100644 --- a/src/modes/server/common.rs +++ b/src/modes/server/common.rs @@ -155,6 +155,10 @@ fn check_bearer_auth(auth_str: &str, expected_password: &str, expected_hash: &Op provided_password == expected_password } +fn default_allow_binary() -> bool { + true +} + fn check_basic_auth(auth_str: &str, expected_password: &str, expected_hash: &Option) -> bool { if !auth_str.starts_with("Basic ") { return false;