quark

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

commit 2021da9bed741788835dab585a8cd24a20f11646
parent 3efce07af97a5311853db105a0140033694bcd45
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue, 27 Jun 2017 21:40:00 +0200

send binary Content-Type by default (octet-stream)

Diffstat:
quark.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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)) {