added colors, for print_special

+ renamed client's public function parse_request() into parse_request_headers()
This commit is contained in:
hugogogo
2022-08-11 17:46:27 +02:00
parent ad2b5a629a
commit a1fff0f8c2
6 changed files with 35 additions and 20 deletions

View File

@@ -56,7 +56,7 @@ int Webserv::_read_request(Client *client) // Messy, Need refactoring
if (client->raw_request.find(CRLF CRLF) != std::string::npos)
{
client->header_complete = true;
client->parse_request(_servers);
client->parse_request_headers(_servers);
std::cerr << client->get_rq_method_str() << " " << client->get_rq_uri() << " " << client->get_rq_version() << "\n"; // DEBUG
if (client->status)
return READ_COMPLETE;