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
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]

https://github.com/ruby/net-http/commit/58284e9710

Co-authored-by: st0012 <stan001212@gmail.com>
2022-04-14 00:11:26 +09:00
..
http [ruby/net-http] Update the content-length heading when decoding bodies 2022-04-14 00:11:26 +09:00
http.rb [ruby/net-http] Add HTTP#response_body_encoding for setting response body encoding 2022-04-12 00:17:34 +09:00
https.rb
net-protocol.gemspec Removed dependency of io-wait. There is no plan to remove from stdlib 2022-02-21 17:10:22 +09:00
protocol.rb [ruby/net-protocol] Bump version to 0.1.3 2022-04-01 13:56:47 +09:00