aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 56078ba..2932d70 100644
--- a/README.md
+++ b/README.md
@@ -126,7 +126,7 @@ let mut cookie = Cookie::new("userid",
cookie.set_secure(Some(true));
cookie.set_expires(expiry_date);
cookie.set_same_site(SameSite::Lax);
-resp.set_cookie(cookie);
+headers.set_cookie(cookie);
```
This session id cookie can then be retrieved and verified as follows: