Skip to content

Commit

Permalink
chore(deps): sessions v0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Oct 10, 2023
1 parent 4b718cc commit 7252cd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions viz-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ mime.workspace = true
thiserror.workspace = true

rfc7239 = "0.1" # realip
cookie = { version = "0.17", features = ["percent-encode"], optional = true }
cookie = { version = "0.18", features = ["percent-encode"], optional = true }
form-data = { version = "0.5.0-rc.2", optional = true }
serde = { workspace = true, features = ["derive"], optional = true }
serde_json = { workspace = true, optional = true }
serde_urlencoded = { workspace = true, optional = true }
sessions-core = { version = "0.5", optional = true }
sessions-core = { version = "0.5.1", optional = true }

# CSRF
getrandom = { version = "0.2", optional = true }
Expand Down
6 changes: 3 additions & 3 deletions viz-core/src/types/cookie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ impl Cookies {
/// Removes `cookie` from this cookies.
pub fn remove(&self, name: impl AsRef<str>) {
if let Ok(mut c) = self.jar().lock() {
c.remove(Cookie::named(name.as_ref().to_string()));
c.remove(Cookie::from(name.as_ref().to_string()));
}
}

Expand Down Expand Up @@ -128,7 +128,7 @@ impl Cookies {
pub fn private_remove(&self, name: impl AsRef<str>) {
if let Ok(mut c) = self.jar().lock() {
c.private_mut(self.key())
.remove(Cookie::named(name.as_ref().to_string()));
.remove(Cookie::from(name.as_ref().to_string()));
}
}

Expand Down Expand Up @@ -171,7 +171,7 @@ impl Cookies {
pub fn signed_remove(&self, name: impl AsRef<str>) {
if let Ok(mut c) = self.jar().lock() {
c.signed_mut(self.key())
.remove(Cookie::named(name.as_ref().to_string()));
.remove(Cookie::from(name.as_ref().to_string()));
}
}

Expand Down

0 comments on commit 7252cd3

Please sign in to comment.