Skip to content

Commit

Permalink
Import header module
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNeikos committed Aug 15, 2021
1 parent 8c3a272 commit 954b2ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maud/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ mod axum_support {
use alloc::string::String;
use axum::{
body::Body,
http::{HeaderValue, Response, StatusCode},
http::{HeaderValue, Response, StatusCode, header},
response::IntoResponse,
};

Expand All @@ -269,7 +269,7 @@ mod axum_support {
let mut res = Response::new(Body::from(self.0));
*res.status_mut() = StatusCode::OK;
res.headers_mut().insert(
axum::http::header::CONTENT_TYPE,
header::CONTENT_TYPE,
HeaderValue::from_static("text/html; charset=utf-8"),
);
res
Expand Down

0 comments on commit 954b2ca

Please sign in to comment.