Cover more Reddit domains with libreddit link rewrites

This commit is contained in:
spikecodes 2021-12-29 11:38:35 -08:00
parent cad29e9544
commit 0708fdfb37
No known key found for this signature in database
GPG key ID: 004CECFF9B463BCB
5 changed files with 27 additions and 156 deletions

View file

@ -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);
}