Fixed the includes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user