mirror of
https://github.com/ticky/wayback-classic.git
synced 2025-12-23 22:17:56 -05:00
@@ -44,7 +44,7 @@ module WaybackClassic
|
||||
query = cgi.params["q"].first
|
||||
|
||||
response = begin
|
||||
WebClient.open uri("https://web.archive.org/__wb/search/host", q: query)
|
||||
WebClient.open uri("https://web.archive.org/__wb/search/host", q: query), "Referer" => "https://web.archive.org"
|
||||
rescue OpenURI::HTTPError
|
||||
raise ErrorReporting::ServerError.new("Couldn't retrieve information for this query or URL")
|
||||
end
|
||||
|
||||
@@ -44,7 +44,7 @@ module WaybackClassic
|
||||
query = cgi.params["q"].first
|
||||
|
||||
response = begin
|
||||
WebClient.open uri("https://web.archive.org/__wb/search/anchor", q: query)
|
||||
WebClient.open uri("https://web.archive.org/__wb/search/anchor", q: query), "Referer" => "https://web.archive.org"
|
||||
rescue OpenURI::HTTPError
|
||||
raise ErrorReporting::ServerError.new("Couldn't retrieve results for these keywords")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user