fix the request context for actix web

This commit is contained in:
Baptiste de Montangon 2024-08-30 22:15:38 +02:00
parent 69df445ef8
commit 0bf2203b49

View file

@ -41,7 +41,8 @@ where
let headers;
#[cfg(feature = "actix")]
{
headers = use_context::<actix_web::HttpRequest>().map(|req| req.headers().clone());
headers =
use_context::<leptos_actix::Request>().map(|req| req.into_inner().headers().clone());
}
#[cfg(feature = "axum")]
{