Skip to content

Commit

Permalink
Fix misspellings on variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
ButteredCats committed Dec 31, 2024
1 parent eb2a544 commit fc3ebf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions src/subreddit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit fc3ebf0

Please sign in to comment.