mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
fix: eof tester
This commit is contained in:
@@ -417,6 +417,8 @@ void Response::methodPost(void)
|
||||
_body.erase(_body.begin(), _body.begin() + pos + 4);
|
||||
}
|
||||
}
|
||||
else
|
||||
_code = 204;
|
||||
setHeaderBlocks();
|
||||
generateHeader();
|
||||
DBOUT << GREEN << "POST method called" << ENDL;
|
||||
|
||||
@@ -148,7 +148,7 @@ void Server::readSocket(Client &client, int fd)
|
||||
int Server::delete_client(std::map<int,Client *> &client_map, int fd)
|
||||
{
|
||||
int ret;
|
||||
client_map[fd]->printClientInfo();
|
||||
// client_map[fd]->printClientInfo();
|
||||
ret = epoll_ctl(_epoll_fd, EPOLL_CTL_DEL, fd, NULL);
|
||||
close(fd);
|
||||
client_map[fd]->clear();
|
||||
|
||||
0
tester/index.html
Normal file
0
tester/index.html
Normal file
Reference in New Issue
Block a user