lib/httpx/resolver/https.rb in httpx-0.20.2 vs lib/httpx/resolver/https.rb in httpx-0.20.3
- old
+ new
@@ -37,9 +37,10 @@
@connections = []
@uri = URI(@resolver_options[:uri])
@uri_addresses = nil
@resolver = Resolv::DNS.new
@resolver.timeouts = @resolver_options.fetch(:timeouts, Resolver::RESOLVE_TIMEOUT)
+ @resolver.lazy_initialize
end
def <<(connection)
return if @uri.origin == connection.origin.to_s