[前][次][番号順一覧][スレッド一覧]

ruby-changes:38089

From: naruse <ko1@a...>
Date: Mon, 6 Apr 2015 11:28:53 +0900 (JST)
Subject: [ruby-changes:38089] naruse:r50170 (trunk): * tool/downloader.rb (http_options): prevent content auto decoding

naruse	2015-04-06 11:28:44 +0900 (Mon, 06 Apr 2015)

  New Revision: 50170

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50170

  Log:
    * tool/downloader.rb (http_options): prevent content auto decoding
      because this is a downloader.

  Modified files:
    trunk/ChangeLog
    trunk/tool/downloader.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50169)
+++ ChangeLog	(revision 50170)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Apr  6 11:26:42 2015  NARUSE, Yui  <naruse@r...>
+
+	* tool/downloader.rb (http_options): prevent content auto decoding
+	  because this is a downloader.
+
 Sun Apr  5 09:55:18 2015  NAKAMURA Usaku  <usa@r...>
 
 	* doc/contributing.rdoc: update Maintainers list.
Index: tool/downloader.rb
===================================================================
--- tool/downloader.rb	(revision 50169)
+++ tool/downloader.rb	(revision 50170)
@@ -91,6 +91,7 @@ class Downloader https://github.com/ruby/ruby/blob/trunk/tool/downloader.rb#L91
         options['If-Modified-Since'] = since
       end
     end
+    options['Accept-Encoding'] = '*' # to deisable Net::HTTP::GenericRequest#decode_content
     options
   end
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]