Skip to content

Commit f3756f4

Browse files
committed
Auto merge of #2605 - jtgeibel:upgrade/cookie, r=JohnTitor
Bump to the latest version of cookie crate This bumps to the latest release of `cookie` and addresses a deprecation. Upstream `conduit-cookie` has similar changes: conduit-rust/conduit-cookie@v0.9.0-alpha.3...v0.9.0-alpha.4 r? @JohnTitor
2 parents 915c6fc + 03bf710 commit f3756f4

File tree

3 files changed

+152
-40
lines changed

3 files changed

+152
-40
lines changed

Cargo.lock

Lines changed: 149 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ failure = "0.1.1"
6868

6969
conduit = "0.9.0-alpha.2"
7070
conduit-conditional-get = "0.9.0-alpha.3"
71-
conduit-cookie = "0.9.0-alpha.3"
72-
cookie = { version = "0.13", features = ["secure"] }
71+
conduit-cookie = "0.9.0-alpha.4"
72+
cookie = { version = "0.14", features = ["secure"] }
7373
conduit-middleware = "0.9.0-alpha.2"
7474
conduit-router = "0.9.0-alpha.2"
7575
conduit-static = "0.9.0-alpha.3"

src/middleware.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub fn build_middleware(app: Arc<App>, endpoints: R404) -> MiddlewareBuilder {
6262
m.add(Cookie::new());
6363
m.add(SessionMiddleware::new(
6464
"cargo_session",
65-
cookie::Key::from_master(app.session_key.as_bytes()),
65+
cookie::Key::derive_from(app.session_key.as_bytes()),
6666
env == Env::Production,
6767
));
6868

0 commit comments

Comments
 (0)