mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Use make_client when querying instance api
This commit is contained in:
parent
7b2aa5f98e
commit
77131cff91
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ end
|
|||
|
||||
def fetch_random_instance
|
||||
begin
|
||||
instance_api_client = HTTP::Client.new(URI.parse("https://api.invidious.io"))
|
||||
instance_api_client = make_client(URI.parse("https://api.invidious.io"))
|
||||
|
||||
# Timeouts
|
||||
instance_api_client.connect_timeout = 10.seconds
|
||||
|
|
Loading…
Reference in a new issue