We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 66ff4d9 + 9da87bf commit fe9893eCopy full SHA for fe9893e
lib/wayback_machine_downloader.rb
@@ -268,7 +268,7 @@ def download_file file_remote_info
268
structure_dir_path dir_path
269
open(file_path, "wb") do |file|
270
begin
271
- URI.open("https://web.archive.org/web/#{file_timestamp}id_/#{file_url}", "Accept-Encoding" => "plain") do |uri|
+ URI("https://web.archive.org/web/#{file_timestamp}id_/#{file_url}").open("Accept-Encoding" => "plain") do |uri|
272
file.write(uri.read)
273
end
274
rescue OpenURI::HTTPError => e
0 commit comments