1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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`.
This commit is contained in:
Kazuhiro NISHIYAMA 2019-04-30 22:35:38 +09:00
parent dd942cd5b3
commit 0eedec6867
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -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