fix integer sizing issues in webserver

This commit is contained in:
electron128 2016-02-07 12:10:25 +01:00
parent 116513963f
commit 3a9ff8e1ea

View File

@ -305,7 +305,7 @@ public:
// get content-type from extension
std::string ext = "";
unsigned int i = info.fname.rfind('.');
std::string::size_type i = info.fname.rfind('.');
if(i != std::string::npos)
ext = info.fname.substr(i+1);
MHD_add_response_header(resp, "Content-Type", ContentTypes::cTypeFromExt(ext).c_str());