From 5cf43f80354ea6f52021855cf09607a632aed918 Mon Sep 17 00:00:00 2001 From: thek4n Date: Wed, 3 Jun 2026 16:24:42 +0300 Subject: [PATCH] fix: fix wrong content type --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6367b15..e4549d8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -106,7 +106,7 @@ async fn main() { async fn static_css_handler(State(state): State) -> impl IntoResponse { let headers = [ - (axum::http::header::CONTENT_TYPE, mime::CSS.as_ref()), + (axum::http::header::CONTENT_TYPE, mime::TEXT_CSS_UTF_8.as_ref()), (axum::http::header::CACHE_CONTROL, "public, max-age=86400"), ]; @@ -117,7 +117,7 @@ async fn static_js_handler(State(state): State) -> impl IntoResponse { let headers = [ ( axum::http::header::CONTENT_TYPE, - mime::APPLICATION_JAVASCRIPT.as_ref(), + mime::APPLICATION_JAVASCRIPT_UTF_8.as_ref(), ), (axum::http::header::CACHE_CONTROL, "public, max-age=86400"), ];