mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-07 23:27:51 +00:00
Cover more Reddit domains with libreddit link rewrites
This commit is contained in:
parent
cad29e9544
commit
0708fdfb37
5 changed files with 27 additions and 156 deletions
|
@ -105,7 +105,7 @@ impl ResponseExt for Response<Body> {
|
|||
fn remove_cookie(&mut self, name: String) {
|
||||
let mut cookie = Cookie::named(name);
|
||||
cookie.set_path("/");
|
||||
cookie.set_max_age(Duration::second());
|
||||
cookie.set_max_age(Duration::seconds(1));
|
||||
if let Ok(val) = HeaderValue::from_str(&cookie.to_string()) {
|
||||
self.headers_mut().append("Set-Cookie", val);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue