[hackers] [quark] Change default mimetype to application/octet-stream || FRIGN

From: <git_AT_suckless.org>
Date: Sat, 09 Aug 2014 21:14:25 +0200

commit 93f27cd081cc95a5099facfd992416d45d32b268
Author: FRIGN <dev_AT_frign.de>
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
_AT_@ -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
_AT_@ -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;
Received on Sat Aug 09 2014 - 21:14:25 CEST

This archive was generated by hypermail 2.3.0 : Sat Aug 09 2014 - 21:24:13 CEST