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" } }