Add some content-types

This commit is contained in:
Neale Pickett 2012-02-03 22:10:58 -07:00
parent ca73f41f75
commit 54032d736a
1 changed files with 6 additions and 4 deletions

10
httpd.c
View File

@ -691,26 +691,28 @@ static struct mimeentry { const char* name, *type; } mimetab[] = {
{ "htm", "text/html; charset=UTF-8" }, { "htm", "text/html; charset=UTF-8" },
{ "txt", "text/plain; charset=UTF-8" }, { "txt", "text/plain; charset=UTF-8" },
{ "css", "text/css" }, { "css", "text/css" },
{ "dvi", "application/x-dvi" },
{ "ps", "application/postscript" }, { "ps", "application/postscript" },
{ "pdf", "application/pdf" }, { "pdf", "application/pdf" },
{ "js", "application/javascript" },
{ "gif", "image/gif" }, { "gif", "image/gif" },
{ "png", "image/png" }, { "png", "image/png" },
{ "jpeg", "image/jpeg" }, { "jpeg", "image/jpeg" },
{ "bild", "image/jpeg" },
{ "jpg", "image/jpeg" }, { "jpg", "image/jpeg" },
{ "svg", "image/svg+xml" },
{ "mpeg", "video/mpeg" }, { "mpeg", "video/mpeg" },
{ "mpg", "video/mpeg" }, { "mpg", "video/mpeg" },
{ "avi", "video/x-msvideo" }, { "avi", "video/x-msvideo" },
{ "mov", "video/quicktime" }, { "mov", "video/quicktime" },
{ "qt", "video/quicktime" }, { "qt", "video/quicktime" },
{ "mp3", "audio/mpeg" }, { "mp3", "audio/mpeg" },
{ "ogg", "audio/x-oggvorbis" }, { "ogg", "audio/ogg" },
{ "wav", "audio/x-wav" }, { "wav", "audio/x-wav" },
{ "epub", "application/epub+zip" },
{ "dvi", "application/x-dvi" },
{ "pac", "application/x-ns-proxy-autoconfig" }, { "pac", "application/x-ns-proxy-autoconfig" },
{ "sig", "application/pgp-signature" }, { "sig", "application/pgp-signature" },
{ "swf", "application/x-shockwave-flash" },
{ "torrent", "application/x-bittorrent" }, { "torrent", "application/x-bittorrent" },
{ "js", "application/x-javascript" },
{ "tar", "application/x-tar" }, { "tar", "application/x-tar" },
{ "zip", "application/zip" }, { "zip", "application/zip" },
{ "dtd", "text/xml" }, { "dtd", "text/xml" },