more telnet tests

This commit is contained in:
Eric LAZO
2022-08-16 23:54:30 +02:00
parent 1b7d388231
commit 19a9d3b464
7 changed files with 190 additions and 125 deletions

View File

@@ -23,11 +23,6 @@ void ConfigParser::_post_processing(std::vector<ServerConfig> *servers)
if (it->client_body_limit == 0)
it->client_body_limit = 1 * MB;
// if error_pages is left empty, we'll use the defaults which
// i believe are set elsewhere...
if (!_find_root_path_location(it->locations))
{
@@ -84,7 +79,6 @@ void ConfigParser::_post_processing(std::vector<ServerConfig> *servers)
}
}
// const?
bool ConfigParser::_find_root_path_location(std::vector<LocationConfig> locations) const
{
std::vector<LocationConfig>::const_iterator it = locations.begin();
@@ -96,5 +90,4 @@ bool ConfigParser::_find_root_path_location(std::vector<LocationConfig> location
++it;
}
return false;
}
}