From 0bf2203b4915486160a38584f4976f0a88f91b3d Mon Sep 17 00:00:00 2001 From: Baptiste de Montangon Date: Fri, 30 Aug 2024 22:15:38 +0200 Subject: [PATCH] fix the request context for actix web --- src/utils/header.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/header.rs b/src/utils/header.rs index 2df4a81..c576116 100644 --- a/src/utils/header.rs +++ b/src/utils/header.rs @@ -41,7 +41,8 @@ where let headers; #[cfg(feature = "actix")] { - headers = use_context::().map(|req| req.headers().clone()); + headers = + use_context::().map(|req| req.into_inner().headers().clone()); } #[cfg(feature = "axum")] {