quark

quark web server
git clone git://git.suckless.org/quark
Log | Files | Refs | LICENSE

commit 93f27cd081cc95a5099facfd992416d45d32b268
parent bd544952fde6aaadf4917b6c0d7a22a1ed956766
Author: FRIGN <dev@frign.de>
Date:   Sat,  9 Aug 2014 21:14:40 +0200

Change default mimetype to application/octet-stream

and move it to config.def.h instead of hiding it in the code.

Diffstat:
Mconfig.def.h | 1+
Mquark.c | 2+-
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h @@ -24,4 +24,5 @@ static const MimeType servermimes[] = { { "gz", "application/x-gtar" }, { "pdf", "application/x-pdf" }, { "tar", "application/tar" }, + { "", "application/octet-stream" } }; diff --git a/quark.c b/quark.c @@ -181,7 +181,7 @@ responsefiledata(int fd, off_t size) { void responsefile(void) { - const char *mimetype = "unknown"; + const char *mimetype; char *p; char mod[25]; int i, ffd, r;