From a98632d5c20e41e05074384b8f760af407e6d52a Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Sun, 11 Aug 2019 12:57:11 -0700 Subject: [ruby/webrick] Enabled chunked encoding if Transfer-Encoding: chunked header is set Patch from Leonard Garvey. Fixes Ruby Bug 9986. https://github.com/ruby/webrick/commit/8cff7f3995 --- lib/webrick/httpresponse.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/webrick/httpresponse.rb') diff --git a/lib/webrick/httpresponse.rb b/lib/webrick/httpresponse.rb index 9942a59714..ba4494ab74 100644 --- a/lib/webrick/httpresponse.rb +++ b/lib/webrick/httpresponse.rb @@ -155,6 +155,7 @@ module WEBrick # 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 -- cgit v1.2.3