1
0

Change header name (#67)

This commit is contained in:
Geometrically
2020-10-02 15:55:47 -07:00
committed by GitHub
parent c4fb7b7928
commit d7f9d5a66f

View File

@@ -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)?;