Multiples minors changes (cgi env, comment, ...)

This commit is contained in:
LuckyLaszlo
2022-08-16 04:00:33 +02:00
parent 2a1aec8f1d
commit 4602844f5a
8 changed files with 207 additions and 194 deletions

View File

@@ -21,8 +21,8 @@ void Webserv::_accept_connection(listen_socket &lsocket)
::fcntl(accepted_fd, F_SETFL, O_NONBLOCK);
infos = _extract_infos(addr);
Client client(accepted_fd, &lsocket, infos["port"], infos["ip"]);
_clients.push_back(client);
Client new_client(accepted_fd, &lsocket, infos["port"], infos["ip"]);
_clients.push_back(new_client);
_epoll_update(accepted_fd, EPOLLIN, EPOLL_CTL_ADD);
}