summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-04-30 22:35:38 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-04-30 22:35:38 +0900
commit0eedec68673fa74960dec80b26659263ec3b6a9a (patch)
tree0e0a51808988d2099590c51a1bd0328b2a27b01c
parentdd942cd5b31947f6a514d4a916971011fbabc089 (diff)
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`.
-rw-r--r--tool/downloader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb
index 29cf435f195..77eab26f63c 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