We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5faca9 commit b9a4c81Copy full SHA for b9a4c81
lib/webrick/httprequest.rb
@@ -531,7 +531,7 @@ def parse_host_request_line(host)
531
def read_body(socket, block)
532
return unless socket
533
if tc = self['transfer-encoding']
534
- if self['content-length']
+ if self['content-length']
535
raise HTTPStatus::BadRequest, "request with both transfer-encoding and content-length, possible request smuggling"
536
end
537
0 commit comments