Skip to content

Commit

Permalink
Change Accept-Encoding from * to identity
Browse files Browse the repository at this point in the history
When `Accept-Encoding` is `*`,
http://www.unicode.org/Public/12.1.0/ucd/ returns gzipped content now.
So set `identity`.
  • Loading branch information
znz committed Apr 30, 2019
1 parent dd942cd commit 0eedec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/downloader.rb
Expand Up @@ -121,7 +121,7 @@ def self.http_options(file, since)
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

Expand Down

0 comments on commit 0eedec6

Please sign in to comment.