From d7f9d5a66fab728866f3ce82e07d6ce17b58ff4e Mon Sep 17 00:00:00 2001 From: Geometrically <18202329+Geometrically@users.noreply.github.com> Date: Fri, 2 Oct 2020 15:55:47 -0700 Subject: [PATCH] Change header name (#67) --- src/auth/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/mod.rs b/src/auth/mod.rs index 4aca733ca..1384c5f60 100644 --- a/src/auth/mod.rs +++ b/src/auth/mod.rs @@ -78,7 +78,7 @@ where E: sqlx::Executor<'a, Database = sqlx::Postgres>, { let token = headers - .get("Authentication") + .get("Authorization") .ok_or(AuthenticationError::InvalidCredentialsError)? .to_str() .map_err(|_| AuthenticationError::InvalidCredentialsError)?;