1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2024-11-27 00:43:47 +00:00

Another attempt at fixing the 502 Gateway error.

This commit is contained in:
King_DuckZ 2017-06-05 09:20:37 +01:00
parent 26d8b553d7
commit 640315cbba

View file

@ -95,7 +95,7 @@ namespace cgi {
if (boost::starts_with(parPath, base_path)) {
//account for the trailing slash in either base path and path info
return std::min(parBasePath.size(), parPath.size()) + (1 - base_path_tr_slash);
return std::min(parBasePath.size() + (1 - base_path_tr_slash), parPath.size());
}
else {
std::string str_base_path(parBasePath.begin(), parBasePath.end());