From f12a82be8937bbfe9bfa6244457152ee8bbd5e03 Mon Sep 17 00:00:00 2001 From: meat <155785205+meatmeatmeatmeatmeatmeat@users.noreply.github.com> Date: Sat, 10 Feb 2024 11:46:49 +1000 Subject: [PATCH] Added css to mimetypes, Fixed invalid javascript mimetype --- src/web.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/web.rs b/src/web.rs index d04aa55..fea04fa 100644 --- a/src/web.rs +++ b/src/web.rs @@ -216,7 +216,7 @@ fn guess_content_type(path: &Path) -> &'static str { { "htm" | "html" => "text/html", "jpg" | "jpeg" => "image/jpeg", - "js" => "test/javascript", + "js" => "text/javascript", "json" => "application/json", "png" => "image/png", "weba" => "audio/weba", @@ -227,6 +227,7 @@ fn guess_content_type(path: &Path) -> &'static str { "mp4" => "video/mp4", "ttf" => "font/ttf", "otf" => "font/otf", + "css" => "text/css", _ => "application/octet-stream", } }