mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-02-02 10:54:15 -05:00
fix the request context for actix web
This commit is contained in:
parent
69df445ef8
commit
0bf2203b49
1 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,8 @@ where
|
||||||
let headers;
|
let headers;
|
||||||
#[cfg(feature = "actix")]
|
#[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")]
|
#[cfg(feature = "axum")]
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue