lib/httpx/resolver/native.rb in httpx-0.20.2 vs lib/httpx/resolver/native.rb in httpx-0.20.3

- old
+ new

@@ -43,10 +43,10 @@ def initialize(_, options) super @ns_index = 0 @resolver_options = DEFAULTS.merge(@options.resolver_options) - @nameserver = @resolver_options[:nameserver] + @nameserver = Array(@resolver_options[:nameserver]) if @resolver_options[:nameserver] @ndots = @resolver_options[:ndots] @search = Array(@resolver_options[:search]).map { |srch| srch.scan(/[^.]+/) } @_timeouts = Array(@resolver_options[:timeouts]) @timeouts = Hash.new { |timeouts, host| timeouts[host] = @_timeouts.dup } @connections = []