ruby-changes:55633
From: Kazuhiro <ko1@a...>
Date: Tue, 30 Apr 2019 22:38:20 +0900 (JST)
Subject: [ruby-changes:55633] Kazuhiro NISHIYAMA:0eedec6867 (trunk): Change Accept-Encoding from `*` to `identity`
https://git.ruby-lang.org/ruby.git/commit/?id=0eedec6867 From 0eedec68673fa74960dec80b26659263ec3b6a9a Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Tue, 30 Apr 2019 22:35:38 +0900 Subject: Change Accept-Encoding from `*` to `identity` When `Accept-Encoding` is `*`, http://www.unicode.org/Public/12.1.0/ucd/ returns gzipped content now. So set `identity`. diff --git a/tool/downloader.rb b/tool/downloader.rb index 29cf435..77eab26 100644 --- a/tool/downloader.rb +++ b/tool/downloader.rb @@ -121,7 +121,7 @@ class Downloader https://github.com/ruby/ruby/blob/trunk/tool/downloader.rb#L121 options['If-Modified-Since'] = since end end - options['Accept-Encoding'] = '*' # to disable Net::HTTP::GenericRequest#decode_content + options['Accept-Encoding'] = 'identity' # to disable Net::HTTP::GenericRequest#decode_content options end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/