Fix mimetypes
This commit is contained in:
+8
-3
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user