Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
benwis committed Sep 29, 2023
1 parent 24f4fb1 commit c923667
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion integrations/axum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,9 @@ async fn generate_response(
// Set the Content Type headers on all responses. This makes Firefox show the page source
// without complaining
let headers = res.headers_mut();
headers.insert(http::header::CONTENT_TYPE,HeaderValue::from_str("text/html; charset=utf-8").unwrap(),
headers.insert(
http::header::CONTENT_TYPE,
HeaderValue::from_str("text/html; charset=utf-8").unwrap(),
);
let mut res_headers = res_options.headers.clone();
headers.extend(res_headers.drain());
Expand Down

0 comments on commit c923667

Please sign in to comment.