Fixed the includes

This commit is contained in:
Me
2022-07-31 16:53:22 +02:00
parent d4a001e8ba
commit 19f7493aac
8 changed files with 36 additions and 41 deletions

View File

@@ -240,7 +240,7 @@ void ConfigParser::_set_server_values(ServerConfig *server, \
else
{
std::vector<std::string> tmp2 = ::split(tmp_val[0], ':');
if (!(isNumeric(tmp2[1])))
if (!(::isNumeric(tmp2[1])))
throw std::invalid_argument("value not a number");
// not sure if this is what we want, means there's only 1 host per
@@ -262,7 +262,7 @@ void ConfigParser::_set_server_values(ServerConfig *server, \
else if (key == "client_body_limit" && size == 1)
{
//std::cout << "made it\n";
if (!(isNumeric(tmp_val[0])))
if (!(::isNumeric(tmp_val[0])))
throw std::invalid_argument("value not a number");
server->client_body_limit = atoi(tmp_val[0].c_str());
}
@@ -299,7 +299,7 @@ void ConfigParser::_set_server_values(ServerConfig *server, \
if (tmp_val.size() != 2)
throw std::invalid_argument("wrong number of values");
// and tmp_val[0] should be a number and tmp_val[1] a string?
if (!(isNumeric(tmp_val[0])))
if (!(::isNumeric(tmp_val[0])))
throw std::invalid_argument("value not a number");
// something about using access() to see if