From f742826e476d97886b47f6548efd92dadb4fc357 Mon Sep 17 00:00:00 2001 From: "N0\\A" Date: Wed, 15 Jul 2026 13:26:20 +0200 Subject: [PATCH] Fix mimetypes --- src/embed.odin | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/embed.odin b/src/embed.odin index 4a11f48..9136036 100644 --- a/src/embed.odin +++ b/src/embed.odin @@ -510,11 +510,16 @@ detect_mime_type :: proc(url: string) -> string { return "video/x-cpk" case ".film": return "video/x-film" - - case "js", "javascript": + case ".js", ".javascript": return "text/javascript" - case: + case ".json": + return "application/json" + case ".xml": + return "application/xml" + case ".html", ".htm": return "text/html" + case: + return "application/octet-stream" } }