Fix mimetypes
This commit is contained in:
+8
-3
@@ -510,11 +510,16 @@ detect_mime_type :: proc(url: string) -> string {
|
|||||||
return "video/x-cpk"
|
return "video/x-cpk"
|
||||||
case ".film":
|
case ".film":
|
||||||
return "video/x-film"
|
return "video/x-film"
|
||||||
|
case ".js", ".javascript":
|
||||||
case "js", "javascript":
|
|
||||||
return "text/javascript"
|
return "text/javascript"
|
||||||
case:
|
case ".json":
|
||||||
|
return "application/json"
|
||||||
|
case ".xml":
|
||||||
|
return "application/xml"
|
||||||
|
case ".html", ".htm":
|
||||||
return "text/html"
|
return "text/html"
|
||||||
|
case:
|
||||||
|
return "application/octet-stream"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user