Change header name (#67)
This commit is contained in:
parent
c4fb7b7928
commit
d7f9d5a66f
@ -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)?;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user