diff options
author | Leah Neukirchen <leah@vuxu.org> | 2020-05-07 23:16:20 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2020-05-07 23:16:20 +0200 |
commit | 10f199487ebe676f25936e991c2a27a1659d5e67 (patch) | |
tree | 71839160011bb934ed82c613c7277e9b2315f719 | |
parent | 50d7d7a469b0ee1d28d430a931348e827ac112a1 (diff) | |
download | hittpd-10f199487ebe676f25936e991c2a27a1659d5e67.tar.gz hittpd-10f199487ebe676f25936e991c2a27a1659d5e67.tar.xz hittpd-10f199487ebe676f25936e991c2a27a1659d5e67.zip |
a few more common MIME types
-rw-r--r-- | hittpd.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/hittpd.c b/hittpd.c index 4c9ac4f..881d9b9 100644 --- a/hittpd.c +++ b/hittpd.c @@ -75,7 +75,16 @@ char mimetypes[] = ":.html=text/html" ":.htm=text/html" ":.gif=image/gif" - ":.txt=text/plain"; + ":.jpeg=image/jpeg" + ":.jpg=image/jpeg" + ":.png=image/png" + ":.css=text/css" + ":.txt=text/plain" + ":.xml=text/xml" + ":.xsl=text/xml" + ":.pdf=application/pdf" + ":.svg=image/svg+xml" + ":.ico=image/x-icon"; char default_mimetype[] = "text/plain"; // "application/octet-stream" char default_wwwroot[] = "/var/www"; |