Skip to content

Commit

Permalink
Removed trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Sep 24, 2024
1 parent f5faca9 commit b9a4c81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/webrick/httprequest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def parse_host_request_line(host)
def read_body(socket, block)
return unless socket
if tc = self['transfer-encoding']
if self['content-length']
if self['content-length']
raise HTTPStatus::BadRequest, "request with both transfer-encoding and content-length, possible request smuggling"
end

Expand Down

0 comments on commit b9a4c81

Please sign in to comment.