mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 00:49:28 -05:00
fix integer sizing issues in webserver
This commit is contained in:
parent
116513963f
commit
3a9ff8e1ea
@ -305,7 +305,7 @@ public:
|
|||||||
|
|
||||||
// get content-type from extension
|
// get content-type from extension
|
||||||
std::string ext = "";
|
std::string ext = "";
|
||||||
unsigned int i = info.fname.rfind('.');
|
std::string::size_type i = info.fname.rfind('.');
|
||||||
if(i != std::string::npos)
|
if(i != std::string::npos)
|
||||||
ext = info.fname.substr(i+1);
|
ext = info.fname.substr(i+1);
|
||||||
MHD_add_response_header(resp, "Content-Type", ContentTypes::cTypeFromExt(ext).c_str());
|
MHD_add_response_header(resp, "Content-Type", ContentTypes::cTypeFromExt(ext).c_str());
|
||||||
|
Loading…
Reference in New Issue
Block a user