diff --git a/autoendpoint/src/server/extractors/authorization_check.rs b/autoendpoint/src/server/extractors/authorization_check.rs index 369bedc0d..f050f174b 100644 --- a/autoendpoint/src/server/extractors/authorization_check.rs +++ b/autoendpoint/src/server/extractors/authorization_check.rs @@ -61,7 +61,7 @@ fn get_token_from_auth_header(header: &str) -> Option<&str> { let mut split = header.splitn(2, ' '); let scheme = split.next()?; - if scheme != "Bearer" { + if scheme.to_lowercase() != "bearer" { return None; }