mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
update to actix web v4 beta 18 (#218)
This commit is contained in:
@ -1,8 +1,11 @@
|
||||
# Changes
|
||||
|
||||
## Unreleased - 2021-xx-xx
|
||||
- Update `actix-web` dependency to `4.0.0.beta-18`. [#218]
|
||||
- Minimum supported Rust version (MSRV) is now 1.54.
|
||||
|
||||
[#218]: https://github.com/actix/actix-extras/pull/218
|
||||
|
||||
|
||||
## 0.5.0-beta.6 - 2021-12-18
|
||||
- Update `actix-web` dependency to `4.0.0.beta-15`. [#216]
|
||||
|
@ -20,14 +20,14 @@ cookie-session = ["actix-web/secure-cookies"]
|
||||
[dependencies]
|
||||
actix-service = "2"
|
||||
actix-utils = "3"
|
||||
actix-web = { version = "4.0.0-beta.17", default_features = false, features = ["cookies"] }
|
||||
actix-web = { version = "4.0.0-beta.18", default_features = false, features = ["cookies"] }
|
||||
|
||||
derive_more = "0.99.5"
|
||||
futures-util = { version = "0.3.7", default-features = false }
|
||||
log = "0.4"
|
||||
serde = "1.0"
|
||||
serde_json = "1.0"
|
||||
time = "0.2.23"
|
||||
time = "0.3"
|
||||
|
||||
[dev-dependencies]
|
||||
actix-rt = "2"
|
||||
|
@ -127,7 +127,7 @@ impl CookieSessionInner {
|
||||
let mut cookie = Cookie::named(self.name.clone());
|
||||
cookie.set_path(self.path.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 = HeaderValue::from_str(&cookie.to_string())?;
|
||||
|
Reference in New Issue
Block a user