diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-06 02:28:44 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-06 02:28:44 +0000 |
commit | 886d8e3f4022aafdbe1f73209a53fdf02cd84b84 (patch) | |
tree | 1f8bbbdcbb7fb255992d90b704344e9857c32e63 | |
parent | 06d95893b0455974b3e62d622dd74e0ae1fcfc58 (diff) | |
download | ruby-886d8e3f4022aafdbe1f73209a53fdf02cd84b84.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tool/downloader.rb | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Mon Apr 6 11:26:42 2015 NARUSE, Yui <naruse@ruby-lang.org> + + * tool/downloader.rb (http_options): prevent content auto decoding + because this is a downloader. + Sun Apr 5 09:55:18 2015 NAKAMURA Usaku <usa@ruby-lang.org> * 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 |