From 70359ae2e9252954684a68f624f0d6218c520be9 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 30 Nov 2014 14:44:43 +0100 Subject: [PATCH] config: add some more common mime-types --- config.def.h | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/config.def.h b/config.def.h index 716fb0d..a17a84b 100644 --- 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" } };