net-http-pipeline icon indicating copy to clipboard operation
net-http-pipeline copied to clipboard

Fix gzip inflation in pipelined HTTP requests

Open mendable opened this issue 8 years ago • 0 comments
trafficstars

It appears that pipelined HTTP requests where the response is gzip compressed are not being re-inflated automatically, which net/http can usually handle automatically for non-pipelined requests.

The source of Ruby 2.2 and others has automatic response inflation, but it requires the deflate_content attr-accessor to be set to true in the response instance: https://github.com/ruby/ruby/blob/ruby_2_2/lib/net/http/response.rb#L250

This is set within the Net::GenericRequest by default if the accept-encoding header is going to be turned on for the request: https://github.com/ruby/ruby/blob/ruby_2_2/lib/net/http/generic_request.rb#L36

Could this be merged and a new version of the Gem released please @drbrain ?

mendable avatar Jun 21 '17 11:06 mendable