mirror of
https://github.com/iv-org/invidious.git
synced 2025-04-19 15:15:58 -04: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
|
||||
opts = {} of Symbol => Float64 | Nil
|
||||
|
||||
opts[:dns_timeout] = @dns_timeout
|
||||
opts[:connect_timeout] = @connect_timeout
|
||||
opts[:read_timeout] = @read_timeout
|
||||
opts[:dns_timeout] = @dns_timeout.try &.to_f
|
||||
opts[:connect_timeout] = @connect_timeout.try &.to_f
|
||||
opts[:read_timeout] = @read_timeout.try &.to_f
|
||||
|
||||
return opts
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user