diff --git a/src/use_cookie.rs b/src/use_cookie.rs index 5745ab7..1cec388 100644 --- a/src/use_cookie.rs +++ b/src/use_cookie.rs @@ -46,9 +46,9 @@ pub fn use_cookie(cookie_name: &str) -> Option> { use leptos::expect_context; #[cfg(feature = "actix")] - const COOKIE: http0_2::HeaderValue = http0_2::header::COOKIE; + const COOKIE: http0_2::HeaderName = http0_2::header::COOKIE; #[cfg(feature = "axum")] - const COOKIE: http1::HeaderValue = http1::header::COOKIE; + const COOKIE: http1::HeaderName = http1::header::COOKIE; #[cfg(feature = "actix")] type HeaderValue = http0_2::HeaderValue;