changed itoa to c++ style and put it in utils, and change utils dependencies to not depend on webserv

This commit is contained in:
hugogogo
2022-07-31 13:19:22 +02:00
parent af8dc072c1
commit 537572e2d0
7 changed files with 17 additions and 64 deletions

View File

@@ -128,9 +128,8 @@ void Webserv::_get_ressource(Client *client)
client->response.append("Content-Type: text/html; charset=UTF-8\r\n");
client->response.append("Content-Length: ");
tmp = ::ft_itoa(ifd.gcount());
tmp = ::itoa(ifd.gcount());
client->response.append(tmp);
delete tmp;
client->response.append("\r\n");
// Body