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

Always close connection if a BAD REQUEST (400) is detected #33

Open u413-284-si opened 1 month ago

u413-284-si commented 1 month ago

extracted from RFC 9112: "When a server listening only for HTTP request messages, or processing what appears from the start-line to be an HTTP request message, receives a sequence of octets that does not match the HTTP-message grammar aside from the robustness exceptions listed above, the server SHOULD respond with a 400 (Bad Request) response and close the connection."

TO DOs: