Fix to internal changes in HTTP::Client

This commit is contained in:
Beta Ziliani 2024-04-23 16:09:55 -03:00
parent b673695aa2
commit 2b83293291
No known key found for this signature in database
GPG Key ID: 8BA3416E5F11939F

View File

@ -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