diff --git a/src/server/kiwix-serve.cpp b/src/server/kiwix-serve.cpp index e7171bf..fb29443 100644 --- a/src/server/kiwix-serve.cpp +++ b/src/server/kiwix-serve.cpp @@ -130,7 +130,7 @@ get_from_humanReadableBookId(const std::string& humanReadableBookId) { static std::string getMimeTypeForFile(const std::string& filename) { std::string mimeType = "text/plain"; - unsigned int pos = filename.find_last_of("."); + auto pos = filename.find_last_of("."); if (pos != std::string::npos) { std::string extension = filename.substr(pos + 1);