Skip to content

Commit f843768

Browse files
author
fmar
committed
.get("authorization")
1 parent 365cf95 commit f843768

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rust/auth-impls/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ impl Authorizer for JWTAuthorizer {
5555
&self, headers_map: &HashMap<String, String>,
5656
) -> Result<AuthResponse, VssError> {
5757
let auth_header = headers_map
58-
.get("Authorization")
58+
.get("authorization")
59+
.or_else(|| headers_map.get("Authorization"))
5960
.ok_or(VssError::AuthError("Authorization header not found.".to_string()))?;
6061

6162
let token = auth_header

0 commit comments

Comments
 (0)