mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 10:27:42 +02:00
Add secure field to removal cookie (#300)
Closes https://github.com/actix/actix-extras/issues/299
This commit is contained in:
committed by
GitHub
parent
1ac325ab79
commit
8fd166435f
@ -48,7 +48,7 @@ async fn cookie_storage() -> std::io::Result<()> {
|
||||
let deletion_cookie = logout_response.response().cookies().next().unwrap();
|
||||
assert_eq!(deletion_cookie.name(), "id");
|
||||
assert_eq!(deletion_cookie.path().unwrap(), "/test");
|
||||
assert!(deletion_cookie.secure().is_none());
|
||||
assert!(deletion_cookie.secure().unwrap());
|
||||
assert!(deletion_cookie.http_only().unwrap());
|
||||
assert_eq!(deletion_cookie.max_age().unwrap(), Duration::ZERO);
|
||||
assert_eq!(deletion_cookie.domain().unwrap(), "localhost");
|
||||
|
Reference in New Issue
Block a user