aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormutantturkey <crazycal00@gmail.com>2011-01-02 13:06:16 -0500
committermutantturkey <crazycal00@gmail.com>2011-01-02 13:06:16 -0500
commit50538fa56a574b318842ab3b0db413272153602c (patch)
tree18a7a2e077aeda74fff2d08839d04316bea5d763
parentfda5bdf11c8835de819537ead1d99adb0cabcb0a (diff)
mimetype mappings updated
-rw-r--r--CHANGELOG6
-rw-r--r--shttpd.c5
2 files changed, 7 insertions, 4 deletions
diff --git a/CHANGELOG b/CHANGELOG
index dbc8197..b774675 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -4,10 +4,10 @@
01-02-2011: CHANGELOG: CHANGELOG created, format should be M-D-YEAR: FILE: MESSAGE
01-02-2011: darkhttpd.c: --help returns usage();
01-02-2011: darkhttpd.c: when used with no arguments defaults wwwroot directory the CWD
-01-02-2011: AUTHORS: updated with Calvin Morrison
+01-02-2011: AUTHORS: Calvin Morrison
01-02-2011: Makefile: added -O2 -Wall to CFLAGS, removed nonexisting files from clean function
01-02-2011: darkhttpd.c renamed shttpd.c, rebranded at Version 0.1
-01-02-2011: Makefile: updated to shttpd/shttpd.c
-
+01-02-2011: Makefile: replaced darkhttpd with shttpd/shttpd.c
+01-02-2011: shttpd.c: more mimetype mappings added to original list
diff --git a/shttpd.c b/shttpd.c
index 7d79082..949f980 100644
--- a/shttpd.c
+++ b/shttpd.c
@@ -277,14 +277,17 @@ static const char *default_extension_map[] = {
"application/xml-dtd" " dtd",
"application/xslt+xml" " xslt",
"application/zip" " zip",
+ "application/x-tar" " tar",
+ "application/x-bzip2" " bz2 boz bz"
"audio/mpeg" " mp2 mp3 mpga",
+ "audio/midi" " midi mid";
"image/gif" " gif",
"image/jpeg" " jpeg jpe jpg",
"image/png" " png",
"text/css" " css",
"text/html" " html htm",
"text/javascript" " js",
- "text/plain" " txt asc",
+ "text/plain" " txt asc h c",
"video/mpeg" " mpeg mpe mpg",
"video/quicktime" " qt mov",
"video/x-msvideo" " avi",