From 8ddb08cd195eb3719c740bc628e239c33630751a Mon Sep 17 00:00:00 2001 From: Neikos Date: Sun, 15 Aug 2021 19:14:46 +0200 Subject: [PATCH] Import header module --- maud/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maud/src/lib.rs b/maud/src/lib.rs index f1b94e5d..b30e1e32 100644 --- a/maud/src/lib.rs +++ b/maud/src/lib.rs @@ -260,7 +260,7 @@ mod axum_support { use alloc::string::String; use axum::{ body::Body, - http::{HeaderValue, Response, StatusCode}, + http::{header, HeaderValue, Response, StatusCode}, response::IntoResponse, }; @@ -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