commit 2021da9bed741788835dab585a8cd24a20f11646
Author: Hiltjo Posthuma <[email protected]>
AuthorDate: Tue Jun 27 21:40:00 2017 +0200
Commit: Laslo Hunhold <[email protected]>
CommitDate: Tue Jun 27 23:31:08 2017 +0200
send binary Content-Type by default (octet-stream)
diff --git a/quark.c b/quark.c
index d2ae1f1..0560d1b 100644
--- a/quark.c
+++ b/quark.c
@@ -661,7 +661,7 @@ sendresponse(int fd, struct request *r)
}
/* mime */
- mime = "text/plain";
+ mime = "application/octet-stream";
if ((p = strrchr(realtarget, '.'))) {
for (i = 0; i < sizeof(mimes) / sizeof(*mimes); i++) {
if (!strcmp(mimes[i].ext, p + 1)) {