mirror of
https://github.com/spikecodes/libreddit.git
synced 2026-01-24 21:44:05 +01:00
Cover more Reddit domains with libreddit link rewrites
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user