diff --git a/src/server/27_response.md b/src/server/27_response.md index 05094fb..d701c46 100644 --- a/src/server/27_response.md +++ b/src/server/27_response.md @@ -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); } } ```