u413-284-si / webserv

This project is about setting up a http web server, providing a static website.
MIT License
0 stars 0 forks source link

Doubled reason phrase #68

Closed gwolf-011235 closed 1 month ago

gwolf-011235 commented 1 month ago

When constructing the response the status line is constructed via: m_responseStream << "HTTP/1.1 " << request.httpStatus << ' ' << webutils::statusCodeToReasonPhrase(request.httpStatus) << "\r\n";

This uses the ostream operator<< overload for enum statusCode. However this inserter also inserts the reason phrase.

The operator should only insert the number: