mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-10 09:07:48 +01:00
Merge pull request #2443 from iv-org/syeopite-patch-1
Use make_client when querying instance api
This commit is contained in:
commit
3e781b7d13
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ end
|
||||||
|
|
||||||
def fetch_random_instance
|
def fetch_random_instance
|
||||||
begin
|
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
|
# Timeouts
|
||||||
instance_api_client.connect_timeout = 10.seconds
|
instance_api_client.connect_timeout = 10.seconds
|
||||||
|
|
Loading…
Reference in a new issue