diff --git a/src/settings.rs b/src/settings.rs index 147be2a..34718c2 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -157,14 +157,14 @@ fn set_cookies_method(req: Request, remove_cookies: bool) -> Response) -> Result, // Starting at 0 so we handle the subscription cookie without a number first for (subscriptions_number, list) in join_until_size_limit(&sub_list).into_iter().enumerate() { - let subcriptions_cookie = if subscriptions_number == 0 { + let subscriptions_cookie = if subscriptions_number == 0 { "subscriptions".to_string() } else { format!("subscriptions{}", subscriptions_number) }; response.insert_cookie( - Cookie::build((subcriptions_cookie, list)) + Cookie::build((subscriptions_cookie, list)) .path("/") .http_only(true) .expires(OffsetDateTime::now_utc() + Duration::weeks(52))