summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-06 02:28:44 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-06 02:28:44 +0000
commit886d8e3f4022aafdbe1f73209a53fdf02cd84b84 (patch)
tree1f8bbbdcbb7fb255992d90b704344e9857c32e63 /tool
parent06d95893b0455974b3e62d622dd74e0ae1fcfc58 (diff)
* 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
Diffstat (limited to 'tool')
-rw-r--r--tool/downloader.rb1
1 files changed, 1 insertions, 0 deletions
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