From: "drbrain (Eric Hodel)" Date: 2012-06-09T07:20:57+09:00 Subject: [ruby-core:45523] [ruby-trunk - Feature #6494] Send Accept-Encoding for all HTTP requests Issue #6494 has been updated by drbrain (Eric Hodel). File net.http.accept_gzip_deflate_by_default.3.patch added Due to feedback from #6492 I have updated this patch to omit Accept-Encoding when Range is supplied in initheader. I've also added documentation to this patch to describe the new compression behavior. ---------------------------------------- Feature #6494: Send Accept-Encoding for all HTTP requests https://bugs.ruby-lang.org/issues/6494#change-27108 Author: drbrain (Eric Hodel) Status: Assigned Priority: Normal Assignee: drbrain (Eric Hodel) 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/