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

@@ -284,9 +284,9 @@ void print_special(std::string str)
{
c = str[i];
if (c == '\r')
std::cout << "\\r";
std::cout << YELLOW << "\\r" << RESET;
else if (c == '\n')
std::cout << "\\n" << "\n";
std::cout << YELLOW << "\\n" << RESET << "\n";
else
std::cout << c;
fflush(stdout);