mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Fix monkeypatch for HTTP::Client
This commit is contained in:
parent
a1225b6d0d
commit
bdeb325bad
3 changed files with 8 additions and 4 deletions
|
@ -5446,7 +5446,7 @@ get "/videoplayback" do |env|
|
|||
|
||||
client = make_client(URI.parse(host), region)
|
||||
|
||||
response = HTTP::Client::Response.new(403)
|
||||
response = HTTP::Client::Response.new(500)
|
||||
5.times do
|
||||
begin
|
||||
response = client.head(url, headers)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue