commit 70359ae2e9252954684a68f624f0d6218c520be9
parent 192f44046c929677cb3dbc4a4d550500506898fd
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 30 Nov 2014 14:44:43 +0100
config: add some more common mime-types
Diffstat:
1 file changed, 24 insertions(+), 5 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -16,16 +16,35 @@ static const MimeType servermimes[] = {
{ "html", "text/html; charset=UTF-8" },
{ "htm", "text/html; charset=UTF-8" },
{ "css", "text/css" },
- { "js", "application/javascript" },
+ { "c", "text/plain" },
+ { "h", "text/plain" },
+ { "go", "text/plain" },
+ { "sh" "text/plain" },
+ { "log", "text/plain" },
{ "txt", "text/plain" },
{ "md", "text/plain" },
{ "png", "image/png" },
{ "gif", "image/gif" },
{ "jpeg", "image/jpeg" },
{ "jpg", "image/jpeg" },
- { "iso", "application/x-iso9660-image" },
- { "gz", "application/x-gtar" },
+ { "webp", "image/webp" },
+ { "xml", "application/xml" },
+ { "js", "application/javascript" },
+ { "bz2", "application/x-bzip2" },
+ { "gz", "application/x-gzip" },
+ { "xz", "application/x-xz" },
+ { "tgz", "application/x-gtar" },
{ "pdf", "application/x-pdf" },
- { "tar", "application/tar" },
- { "mp3", "audio/mp3" }
+ { "tar", "application/x-tar" },
+ { "zip", "application/zip" },
+ { "iso", "application/x-iso9660-image" },
+ { "ogx", "application/ogg" },
+ { "flac", "audio/flac" },
+ { "mp3", "audio/mp3" },
+ { "oga", "audio/ogg" },
+ { "ogg", "audio/ogg" },
+ { "avi", "video/x-msvideo" },
+ { "mp4", "video/mp4" },
+ { "ogv", "video/ogg" },
+ { "webm", "video/webm" }
};