Change default mimetype to application/octet-stream
and move it to config.def.h instead of hiding it in the code.
This commit is contained in:
parent
bd544952fd
commit
93f27cd081
2 changed files with 2 additions and 1 deletions
|
@ -24,4 +24,5 @@ static const MimeType servermimes[] = {
|
|||
{ "gz", "application/x-gtar" },
|
||||
{ "pdf", "application/x-pdf" },
|
||||
{ "tar", "application/tar" },
|
||||
{ "", "application/octet-stream" }
|
||||
};
|
||||
|
|
2
quark.c
2
quark.c
|
@ -181,7 +181,7 @@ responsefiledata(int fd, off_t size) {
|
|||
|
||||
void
|
||||
responsefile(void) {
|
||||
const char *mimetype = "unknown";
|
||||
const char *mimetype;
|
||||
char *p;
|
||||
char mod[25];
|
||||
int i, ffd, r;
|
||||
|
|
Loading…
Reference in a new issue