update ntex

This commit is contained in:
Nikolay Kim 2020-07-30 10:42:38 +06:00
parent de001b0f25
commit 27236552ba
8 changed files with 20 additions and 21 deletions

View file

@ -22,9 +22,9 @@ default = ["cookie-session"]
cookie-session = ["cookie/secure", "ntex/cookie"]
[dependencies]
ntex = "0.1.11"
ntex = "0.1.21"
bytes = "0.5.4"
cookie = "0.13.3"
cookie = "0.14.2"
derive_more = "0.99.5"
futures = "0.3.4"
serde = "1.0"

View file

@ -70,7 +70,7 @@ impl<Err> CookieSessionInner<Err> {
fn new(key: &[u8], security: CookieSecurity) -> Self {
CookieSessionInner {
security,
key: Key::from_master(key),
key: Key::derive_from(key),
name: "ntex-session".to_owned(),
path: "/".to_owned(),
domain: None,