mirror of
https://github.com/redlib-org/redlib.git
synced 2025-05-04 12:24:50 +00:00
Update cookie + changes
This commit is contained in:
parent
e82c3fbea0
commit
3e3c30d7f1
6 changed files with 17 additions and 17 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue