Fix misspellings on variable name

This commit is contained in:
Butter Cat 2024-12-31 14:47:48 -05:00
parent eb2a544868
commit fc3ebf0fd4
No known key found for this signature in database
GPG key ID: FF37BE4FDDB74419
2 changed files with 4 additions and 4 deletions

View file

@ -157,14 +157,14 @@ fn set_cookies_method(req: Request<Body>, remove_cookies: bool) -> Response<Body
// 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))

View file

@ -363,14 +363,14 @@ pub async fn subscriptions_filters(req: Request<Body>) -> Result<Response<Body>,
// 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))