Fix two subscription bugs

This commit is contained in:
spikecodes
2021-05-19 20:30:10 -07:00
parent 2cd35fb3b6
commit ba42fc066f
4 changed files with 4 additions and 4 deletions

View File

@@ -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())