1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-08-28 18:37:48 +02:00

update to actix web v4 beta 18 (#218)

This commit is contained in:
Rob Ede
2021-12-29 10:22:56 +00:00
committed by GitHub
parent 5f17026a55
commit 0d12201073
9 changed files with 22 additions and 8 deletions

View File

@@ -363,7 +363,7 @@ impl Inner {
fn remove_cookie<B>(&self, res: &mut ServiceResponse<B>) -> Result<(), Error> {
let mut cookie = Cookie::named(self.name.clone());
cookie.set_value("");
cookie.set_max_age(Duration::zero());
cookie.set_max_age(Duration::ZERO);
cookie.set_expires(OffsetDateTime::now_utc() - Duration::days(365));
let val =