From 886d8e3f4022aafdbe1f73209a53fdf02cd84b84 Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 6 Apr 2015 02:28:44 +0000 Subject: [PATCH] * tool/downloader.rb (http_options): prevent content auto decoding because this is a downloader. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ tool/downloader.rb | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index b2d741417b..4c6253d086 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Apr 6 11:26:42 2015 NARUSE, Yui + + * tool/downloader.rb (http_options): prevent content auto decoding + because this is a downloader. + Sun Apr 5 09:55:18 2015 NAKAMURA Usaku * doc/contributing.rdoc: update Maintainers list. diff --git a/tool/downloader.rb b/tool/downloader.rb index c5f18f1f16..fcf456bd53 100644 --- a/tool/downloader.rb +++ b/tool/downloader.rb @@ -91,6 +91,7 @@ class Downloader options['If-Modified-Since'] = since end end + options['Accept-Encoding'] = '*' # to deisable Net::HTTP::GenericRequest#decode_content options end