mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-27 07:48:29 +00:00
Fix to internal changes in HTTP::Client
This commit is contained in:
parent
b673695aa2
commit
2b83293291
@ -84,9 +84,9 @@ class HTTPClient < HTTP::Client
|
|||||||
def proxy_connection_options
|
def proxy_connection_options
|
||||||
opts = {} of Symbol => Float64 | Nil
|
opts = {} of Symbol => Float64 | Nil
|
||||||
|
|
||||||
opts[:dns_timeout] = @dns_timeout
|
opts[:dns_timeout] = @dns_timeout.try &.to_f
|
||||||
opts[:connect_timeout] = @connect_timeout
|
opts[:connect_timeout] = @connect_timeout.try &.to_f
|
||||||
opts[:read_timeout] = @read_timeout
|
opts[:read_timeout] = @read_timeout.try &.to_f
|
||||||
|
|
||||||
return opts
|
return opts
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user