lib/httpx/resolver/system.rb in httpx-0.10.0 vs lib/httpx/resolver/system.rb in httpx-0.10.1

- old
+ new

@@ -12,12 +12,12 @@ Resolv::DNS::EncodeError, Resolv::DNS::DecodeError].freeze def initialize(options) @options = Options.new(options) - @resolver_options = Resolver::Options.new(@options.resolver_options) + @resolver_options = @options.resolver_options @state = :idle - resolv_options = @resolver_options.to_h + resolv_options = @resolver_options.dup timeouts = resolv_options.delete(:timeouts) resolv_options.delete(:cache) @resolver = Resolv::DNS.new(resolv_options.empty? ? nil : resolv_options) @resolver.timeouts = timeouts if timeouts end