updated deprecated calls, changed URI to https

This commit is contained in:
DessertArbiter
2020-05-27 20:28:06 -04:00
parent 069a7cc315
commit 15edae6a92
2 changed files with 3 additions and 3 deletions

View File

@@ -268,7 +268,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}", "Accept-Encoding" => "plain") do |uri|
URI.open("https://web.archive.org/web/#{file_timestamp}id_/#{file_url}", "Accept-Encoding" => "plain") do |uri|
file.write(uri.read)
end
rescue OpenURI::HTTPError => e