diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-04-30 22:35:38 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-04-30 22:35:38 +0900 |
commit | 0eedec68673fa74960dec80b26659263ec3b6a9a (patch) | |
tree | 0e0a51808988d2099590c51a1bd0328b2a27b01c /tool | |
parent | dd942cd5b31947f6a514d4a916971011fbabc089 (diff) | |
download | ruby-0eedec68673fa74960dec80b26659263ec3b6a9a.tar.gz |
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`.
Diffstat (limited to 'tool')
-rw-r--r-- | tool/downloader.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb index 29cf435f19..77eab26f63 100644 --- a/tool/downloader.rb +++ b/tool/downloader.rb @@ -121,7 +121,7 @@ class Downloader 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 |