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:
parent
dd942cd5b3
commit
0eedec6867
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue