1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-07-30 12:06:41 +02:00

bump cookie crate to 0.18.

This commit is contained in:
Frederic Henrichs
2024-04-17 11:24:24 +02:00
parent ba7fd048b6
commit 14f3a0351a
7 changed files with 15 additions and 15 deletions

View File

@@ -679,13 +679,13 @@ async fn body_streaming_implicit() {
async fn client_cookie_handling() {
use std::io::{Error as IoError, ErrorKind};
let cookie1 = Cookie::build("cookie1", "value1").finish();
let cookie2 = Cookie::build("cookie2", "value2")
let cookie1 = Cookie::build(("cookie1", "value1")).build();
let cookie2 = Cookie::build(("cookie2", "value2"))
.domain("www.example.org")
.path("/")
.secure(true)
.http_only(true)
.finish();
.build();
// Q: are all these clones really necessary? A: Yes, possibly
let cookie1b = cookie1.clone();
let cookie2b = cookie2.clone();