fix: add missing default_allow_binary function
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -155,6 +155,10 @@ fn check_bearer_auth(auth_str: &str, expected_password: &str, expected_hash: &Op
|
|||||||
provided_password == expected_password
|
provided_password == expected_password
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn default_allow_binary() -> bool {
|
||||||
|
true
|
||||||
|
}
|
||||||
|
|
||||||
fn check_basic_auth(auth_str: &str, expected_password: &str, expected_hash: &Option<String>) -> bool {
|
fn check_basic_auth(auth_str: &str, expected_password: &str, expected_hash: &Option<String>) -> bool {
|
||||||
if !auth_str.starts_with("Basic ") {
|
if !auth_str.starts_with("Basic ") {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user