Skip to content

Commit

Permalink
Make the registration auth scheme check case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
AzureMarker committed Jul 20, 2020
1 parent 8555b87 commit 8e6858f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoendpoint/src/server/extractors/authorization_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8e6858f

Please sign in to comment.