Skip to content

Commit

Permalink
fixed a stuped copy pasta mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucien Van Bussel committed Dec 13, 2023
1 parent f66ddb2 commit 7af6bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HTTPServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void HTTPServer::handleActivePollFDs()
if (poll_fd.revents & POLLHUP) // this code block is solving a thrown exception from the cgi's child process
{
Client &client = getClientByPipeFd(poll_fd.fd);
if (client.getRequest().CGITrue() && _request.getMethodType() != HTTPMethod::DELETE)
if (client.getRequest().CGITrue() && client.getRequest().getMethodType() != HTTPMethod::DELETE)
{
_poll.removeFD(poll_fd.fd);
_active_pipes.erase(poll_fd.fd);
Expand Down

0 comments on commit 7af6bbf

Please sign in to comment.