only allow acess to known server files

This commit is contained in:
lxsang
2016-12-07 10:57:14 +01:00
parent ea43ed8da1
commit a2dea1d847
3 changed files with 27 additions and 7 deletions

BIN
plugins/.DS_Store vendored

Binary file not shown.

View File

@ -175,6 +175,9 @@ char* mime(const char* file)
return "application/x-font-woff";
else if(IEQU(ex,"otf"))
return "application/x-font-otf";
//audio
else if(IEQU(ex,"mp3"))
return "audio/mpeg";
else
// The other type will be undestant as binary
return "application/octet-stream";