1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/net/http
Jeremy Evans 0579486f15 [ruby/net-http] Update the content-length heading when decoding bodies
Previously, the content-encoding header was removed and the body
was modified, but the content-length header was not modified,
resulting in the content-length header not matching the body
length.

Don't delete content-length before yielding inflate body, as that
causes a switch to read the entire body instead of reading in
chunks.

Fixes [Bug #16672]

58284e9710

Co-authored-by: st0012 <stan001212@gmail.com>
2022-04-14 00:11:26 +09:00
..
backward.rb [ruby/net-http] Warn deprecated old constants 2021-11-04 20:51:51 +09:00
exceptions.rb
generic_request.rb [ruby/net-http] Send Accept-Encoding header on HEAD method 2021-11-11 17:34:00 +09:00
header.rb Improve documentation for Net::HTTPHeader#set_form [ci skip] 2020-05-27 13:13:46 -07:00
net-http.gemspec Removed dependency of net-protocol. There is no plan to remove from stdlib 2022-02-21 17:10:56 +09:00
proxy_delta.rb
request.rb
requests.rb
response.rb [ruby/net-http] Update the content-length heading when decoding bodies 2022-04-14 00:11:26 +09:00
responses.rb
status.rb