send binary Content-Type by default (octet-stream)
This commit is contained in:
parent
3efce07af9
commit
2021da9bed
1 changed files with 1 additions and 1 deletions
2
quark.c
2
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)) {
|
||||
|
|
Loading…
Reference in a new issue