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

This commit is contained in:
Hiltjo Posthuma 2017-06-27 21:40:00 +02:00 committed by Laslo Hunhold
parent 3efce07af9
commit 2021da9bed

View file

@ -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)) {