You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When WEBrick receives a request with no message body that is missing the final CRLF pair after the headers, and then the connection is closed for writing by the client, WEBrick responds to the request as though it were complete.
For example, if WEBrick receives the following request, (notice the missing final CRLF)
GET / HTTP/1.1\r\n
Host: whatever\r\n
and the client then half-closes the socket, WEBrick will still respond to the request. This request should be considered incomplete and rejected. This is what nearly every other HTTP implementation does.
The text was updated successfully, but these errors were encountered:
jeremyevans
added a commit
to jeremyevans/webrick
that referenced
this issue
Jul 5, 2024
Fix tests that did not have correctly formatted headers.
This changes one test, with a request line that ends in
bare LF instead of CRLF, from raising BadRequest to raising
EOFError, but that seems reasonable.
Fixesruby#140
When WEBrick receives a request with no message body that is missing the final CRLF pair after the headers, and then the connection is closed for writing by the client, WEBrick responds to the request as though it were complete.
For example, if WEBrick receives the following request, (notice the missing final CRLF)
and the client then half-closes the socket, WEBrick will still respond to the request. This request should be considered incomplete and rejected. This is what nearly every other HTTP implementation does.
The text was updated successfully, but these errors were encountered: