diff --git a/lib/tasks/docs.thor b/lib/tasks/docs.thor index 5b85a8b0..6e953e4f 100644 --- a/lib/tasks/docs.thor +++ b/lib/tasks/docs.thor @@ -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)