From 10f199487ebe676f25936e991c2a27a1659d5e67 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Thu, 7 May 2020 23:16:20 +0200 Subject: a few more common MIME types --- hittpd.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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"; -- cgit 1.4.1