fix: fix wrong content type

This commit is contained in:
thek4n 2026-06-03 16:24:42 +03:00
parent df9e94ef5b
commit 016b31162d

View File

@ -106,7 +106,7 @@ async fn main() {
async fn static_css_handler(State(state): State<AppState>) -> impl IntoResponse { async fn static_css_handler(State(state): State<AppState>) -> impl IntoResponse {
let headers = [ 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"), (axum::http::header::CACHE_CONTROL, "public, max-age=86400"),
]; ];
@ -117,7 +117,7 @@ async fn static_js_handler(State(state): State<AppState>) -> impl IntoResponse {
let headers = [ let headers = [
( (
axum::http::header::CONTENT_TYPE, 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"), (axum::http::header::CACHE_CONTROL, "public, max-age=86400"),
]; ];