Merge pull request #2414 from ojeytonwilliams/fix/avoid-compression

fix: prevent compression with Accept-Encoding
pull/2404/merge
Oliver Eyton-Williams 1 day ago committed by GitHub
commit b8f0127b52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -239,7 +239,7 @@ class DocsCLI < Thor
['index.json', 'meta.json'].each do |filename|
json = "https://documents.devdocs.io/#{doc.path}/#{filename}?#{time}"
begin
URI.open(json) do |file|
URI.open(json, "Accept-Encoding" => "identity") do |file|
mutex.synchronize do
path = File.join(dir, filename)
File.write(path, file.read)

Loading…
Cancel
Save