Update cookie + changes

This commit is contained in:
Matthew Esposito 2023-12-26 16:24:53 -05:00
parent e82c3fbea0
commit 3e3c30d7f1
No known key found for this signature in database
6 changed files with 17 additions and 17 deletions

View file

@ -769,7 +769,7 @@ pub fn setting(req: &Request<Body>, name: &str) -> String {
if let Some(default) = crate::config::get_setting(&format!("LIBREDDIT_DEFAULT_{}", name.to_uppercase())) {
Cookie::new(name, default)
} else {
Cookie::named(name)
Cookie::from(name)
}
})
.value()