commit 93f27cd081cc95a5099facfd992416d45d32b268
Author: FRIGN <[email protected]>
Date:   Sat Aug 9 21:14:40 2014 +0200

    Change default mimetype to application/octet-stream
    
    and move it to config.def.h instead of hiding it in the code.

diff --git a/config.def.h b/config.def.h
index 86e4afd..d5d4448 100644
--- 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
index 071c5d8..9349101 100644
--- 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;


Reply via email to