changed itoa to c++ style and put it in utils, and change utils dependencies to not depend on webserv
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/07/13 22:11:17 by me #+# #+# */
|
||||
/* Updated: 2022/07/30 23:07:42 by lperrey ### ########.fr */
|
||||
/* Updated: 2022/07/31 13:18:14 by simplonco ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -239,7 +239,7 @@ void ConfigParser::_set_server_values(ServerConfig *server, \
|
||||
//value = value.substr(0, i - 1);
|
||||
value = value.substr(0, i);
|
||||
|
||||
std::vector<std::string> tmp_val = split(value, ' ');
|
||||
std::vector<std::string> tmp_val = ::split(value, ' ');
|
||||
size_t size = tmp_val.size();
|
||||
|
||||
// would if if be more optimized?
|
||||
@@ -260,7 +260,7 @@ void ConfigParser::_set_server_values(ServerConfig *server, \
|
||||
else
|
||||
{
|
||||
// maybe do this differently?
|
||||
std::vector<std::string> tmp2 = split(tmp_val[0], ':');
|
||||
std::vector<std::string> tmp2 = ::split(tmp_val[0], ':');
|
||||
// i might take issue with this, will see
|
||||
if (server->host != "" && server->host != tmp2[0])
|
||||
throw std::invalid_argument("bad listen");
|
||||
|
||||
Reference in New Issue
Block a user