mirror of
https://github.com/lxsang/ant-http
synced 2025-07-24 17:49:46 +02:00
only allow acess to known server files
This commit is contained in:
BIN
plugins/.DS_Store
vendored
BIN
plugins/.DS_Store
vendored
Binary file not shown.
@ -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";
|
||||
|
Reference in New Issue
Block a user