summaryrefslogtreecommitdiff
path: root/lib/net/http.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r--lib/net/http.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index cc1b1c4a1f..4cb0408139 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -1122,13 +1122,6 @@ module Net #:nodoc:
#
def get(path, initheader = {}, dest = nil, &block) # :yield: +body_segment+
res = nil
- if HAVE_ZLIB
- unless initheader.keys.any?{|k| k.downcase == "accept-encoding"}
- initheader = initheader.merge({
- "accept-encoding" => "gzip;q=1.0,deflate;q=0.6,identity;q=0.3"
- })
- end
- end
request(Get.new(path, initheader)) {|r|
r.read_body dest, &block
res = r