From: "naruse (Yui NARUSE)" Date: 2012-05-30T21:49:06+09:00 Subject: [ruby-core:45324] [ruby-trunk - Feature #6494] Send Accept-Encoding for all HTTP requests Issue #6494 has been updated by naruse (Yui NARUSE). drbrain (Eric Hodel) wrote: > Why remove the HAVE_ZLIB and @response_has_body checks? Ah, I wrongly removed it, it is needed. > This updated patch incorporates your change to maintain backwards-compatibility but leaves in the HAVE_ZLIB and @response_has_body checks. OK, you can commit it, thanks. ---------------------------------------- Feature #6494: Send Accept-Encoding for all HTTP requests https://bugs.ruby-lang.org/issues/6494#change-26905 Author: drbrain (Eric Hodel) Status: Open Priority: Normal Assignee: Category: lib Target version: 2.0.0 This patch builds atop #6492 to enable Accept-Encoding by default for all HTTP requests that permit bodies. (Without #6492 it will break Net::HTTP.) This patch moves setting the Accept-Encoding header from Net::HTTP#get to Net::HTTP::GenericRequest#initialize. -- http://bugs.ruby-lang.org/