mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 17:56:44 +00:00
Work around a potential Ruby OpenURI Issue
https://bugs.ruby-lang.org/issues/11268
This commit is contained in:
parent
4dd2e9d741
commit
f5aa9b0bf6
@ -110,7 +110,7 @@ class WaybackMachineDownloader
|
||||
structure_dir_path dir_path
|
||||
open(file_path, "wb") do |file|
|
||||
begin
|
||||
open("http://web.archive.org/web/#{file_timestamp}id_/#{file_url}") do |uri|
|
||||
open("http://web.archive.org/web/#{file_timestamp}id_/#{file_url}", "Accept-Encoding" => "plain") do |uri|
|
||||
file.write(uri.read)
|
||||
end
|
||||
rescue OpenURI::HTTPError => e
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user