mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-10 23:07:52 +00:00
Correct Content-Type header for gif images
This commit is contained in:
parent
6d128d1ac4
commit
3d9c89889f
@ -1007,6 +1007,8 @@ void ServiceConnection(AcceptedConnection *conn)
|
||||
contentType = "text/css";
|
||||
if( strURI.find(".png") != std::string::npos )
|
||||
contentType = "image/png";
|
||||
if( strURI.find(".gif") != std::string::npos )
|
||||
contentType = "image/gif";
|
||||
if( strURI.find(".ttf") != std::string::npos )
|
||||
contentType = "application/x-font-ttf";
|
||||
if( strURI.find(".jpg") != std::string::npos ||
|
||||
|
Loading…
Reference in New Issue
Block a user