We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 393ac0a commit 4d4ec8eCopy full SHA for 4d4ec8e
examples/hyper/src/lib.rs
@@ -20,7 +20,9 @@ async fn make_request(
20
.map_err(map_hyper_error)?;
21
let text = std::str::from_utf8(&buf).map_err(map_utf8_error)?;
22
let mut response = Response::ok(text)?;
23
- response.headers_mut().append("Content-Type", "text/html; charset=utf-8")?;
+ response
24
+ .headers_mut()
25
+ .append("Content-Type", "text/html; charset=utf-8")?;
26
Ok(response)
27
}
28
#[event(fetch)]
0 commit comments