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" },
|
{ "gz", "application/x-gtar" },
|
||||||
{ "pdf", "application/x-pdf" },
|
{ "pdf", "application/x-pdf" },
|
||||||
{ "tar", "application/tar" },
|
{ "tar", "application/tar" },
|
||||||
|
{ "", "application/octet-stream" }
|
||||||
};
|
};
|
||||||
|
|
2
quark.c
2
quark.c
|
@ -181,7 +181,7 @@ responsefiledata(int fd, off_t size) {
|
||||||
|
|
||||||
void
|
void
|
||||||
responsefile(void) {
|
responsefile(void) {
|
||||||
const char *mimetype = "unknown";
|
const char *mimetype;
|
||||||
char *p;
|
char *p;
|
||||||
char mod[25];
|
char mod[25];
|
||||||
int i, ffd, r;
|
int i, ffd, r;
|
||||||
|
|
Loading…
Reference in a new issue