Skip to content

Commit

Permalink
Don't mark cookies as changed on
Browse files Browse the repository at this point in the history
  • Loading branch information
imbolc committed Nov 18, 2021
1 parent 79c6b0c commit 1c30c78
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "MIT"
name = "tower-cookies"
readme = "README.md"
repository = "https://github.com/imbolc/tower-cookies"
version = "0.2.1"
version = "0.2.2"

[features]
default = ["axum"]
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ impl Cookies {
/// Returns the [`Cookie`] with the given name. Returns [`None`] if it doesn't exist.
pub fn get(&self, name: &str) -> Option<Cookie> {
let mut inner = self.inner.lock();
inner.changed = true;
inner.jar().get(name).cloned()
}

Expand Down

0 comments on commit 1c30c78

Please sign in to comment.