Skip to content

Commit

Permalink
variable name incorrect in code example (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: Alister Lee <[email protected]>
  • Loading branch information
alilee and Alister Lee authored Dec 10, 2023
1 parent 3123e31 commit 4ba0415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/27_response.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub async fn tea_and_cookies() -> Result<(), ServerFnError> {
// set a cookie in the HTTP response
let mut cookie = Cookie::build("biscuits", "yes").finish();
if let Ok(cookie) = HeaderValue::from_str(&cookie.to_string()) {
res.insert_header(header::SET_COOKIE, cookie);
response.insert_header(header::SET_COOKIE, cookie);
}
}
```
Expand Down

0 comments on commit 4ba0415

Please sign in to comment.