zensical:fix - wrong mime-type when using .mjs

Signed-off-by: squidfunk <martin.donath@squidfunk.com>
This commit is contained in:
squidfunk
2025-12-12 11:58:09 +01:00
parent cdc62cd7aa
commit 6a4c8cc98f
@@ -48,7 +48,7 @@ pub trait ResponseExt: Sized {
let mime = match path.extension().and_then(|ext| ext.to_str()) {
Some("html" | "htm") => "text/html; charset=utf-8",
Some("css") => "text/css",
Some("js") => "application/javascript",
Some("js" | "mjs") => "application/javascript",
Some("json") => "application/json",
Some("png") => "image/png",
Some("jpg" | "jpeg") => "image/jpeg",