[hackers] [quark] send binary Content-Type by default (octet-stream) || Hiltjo Posthuma
commit 2021da9bed741788835dab585a8cd24a20f11646
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Tue Jun 27 21:40:00 2017 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
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
_AT_@ -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)) {
Received on Tue Jun 27 2017 - 23:31:29 CEST
This archive was generated by hypermail 2.3.0
: Tue Jun 27 2017 - 23:36:46 CEST