fix compile  error
@@ -281,10 +281,10 @@ impl Response {
/// client.
///
/// `write_back` consumes the `Response`.
- pub(crate) async fn write_back(self, res: &mut hyper::Response<hyper::Body>) {
+ pub(crate) async fn write_back(mut self, res: &mut hyper::Response<hyper::Body>) {
for cookie in self.cookies.delta() {
if let Ok(hv) = cookie.encoded().to_string().parse() {
- self.headers.append(SET_COOKIE, hv);
+ self.headers.append(header::SET_COOKIE, hv);
}
}
*res.headers_mut() = self.headers;
