Skip to content

Commit

Permalink
Fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kpcyrd committed Feb 27, 2024
1 parent 393ac0a commit 4d4ec8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/hyper/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ async fn make_request(
.map_err(map_hyper_error)?;
let text = std::str::from_utf8(&buf).map_err(map_utf8_error)?;
let mut response = Response::ok(text)?;
response.headers_mut().append("Content-Type", "text/html; charset=utf-8")?;
response
.headers_mut()
.append("Content-Type", "text/html; charset=utf-8")?;
Ok(response)
}
#[event(fetch)]
Expand Down

0 comments on commit 4d4ec8e

Please sign in to comment.