mirror of
https://github.com/spikecodes/libreddit.git
synced 2025-12-23 22:12:36 +01:00
Fix two subscription bugs
This commit is contained in:
@@ -103,7 +103,7 @@ fn set_cookies_method(req: Request<Body>, remove_cookies: bool) -> Response<Body
|
||||
|
||||
let mut res = redirect(path);
|
||||
|
||||
for &name in &PREFS {
|
||||
for name in [PREFS.to_vec(), vec!["subscriptions"]].concat() {
|
||||
match form.get(name) {
|
||||
Some(value) => res.insert_cookie(
|
||||
Cookie::build(name.to_owned(), value.to_owned())
|
||||
|
||||
Reference in New Issue
Block a user