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:
FRIGN 2014-08-09 21:14:40 +02:00
parent bd544952fd
commit 93f27cd081
2 changed files with 2 additions and 1 deletions

View file

@ -24,4 +24,5 @@ static const MimeType servermimes[] = {
{ "gz", "application/x-gtar" },
{ "pdf", "application/x-pdf" },
{ "tar", "application/tar" },
{ "", "application/octet-stream" }
};

View file

@ -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;