From a3846a26200625058669afc69785726ad3e70a3b Mon Sep 17 00:00:00 2001 From: Radical Date: Sun, 4 May 2025 20:30:28 +0200 Subject: [PATCH] fix: use correct header --- src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.rs b/src/utils.rs index 3b02593..56b43fa 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -1,7 +1,7 @@ use actix_web::{HttpResponse, http::header::HeaderMap}; pub fn get_auth_header(headers: &HeaderMap) -> Result<&str, HttpResponse> { - let auth_token = headers.get(actix_web::http::header::CONTENT_TYPE); + let auth_token = headers.get(actix_web::http::header::AUTHORIZATION); if let None = auth_token { return Err(HttpResponse::Unauthorized().finish());