rewrite readme cgi todo list

This commit is contained in:
hugogogo
2022-08-08 16:16:11 +02:00
parent 972f52ebc8
commit f10931042f
2 changed files with 18 additions and 12 deletions

View File

@@ -227,18 +227,6 @@ void Webserv::_get_file(Client *client, const std::string &path)
// WIP HUGO
void Webserv::_response_correction(Client *client)
{
// TODO : change all the '\n' by '\r\n'
// TODO : there is at least one header field followed by '\r\n\r\n' :
// - "Content-Type"
// - "Location"
// - "Status"
// TODO : there is no field duplicate (resolve conflicts)
// TODO : there is no space between filed name and ":"
// TODO : if no Location field && no Status field -> status code = 200
// TODO?: handle Location field, either :
// - local : start with '/' --> rerun the request with new uri
// - client : start with '<scheme>:' --> send back status code 302
(void)client;
}