Project

General

Profile

Bug #9986 » webrick_transfer_encoding_chunked_content_length_fix.patch

Fix in HTTPResponse#[]= for issue 9986 - lengarvey (Leonard Garvey), 07/01/2014 01:27 PM

View differences:

lib/webrick/httpresponse.rb
# Sets the response header +field+ to +value+
def []=(field, value)
@chunked = value.to_s.downcase == 'chunked' if field.downcase == 'transfer-encoding'
@header[field.downcase] = value.to_s
end
(3-3/3)