mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
makinng sure the nameserver list is a list
This commit is contained in:
parent
1e2cf12f6e
commit
2935724a16
@ -45,7 +45,7 @@ module HTTPX
|
|||||||
super
|
super
|
||||||
@ns_index = 0
|
@ns_index = 0
|
||||||
@resolver_options = DEFAULTS.merge(@options.resolver_options)
|
@resolver_options = DEFAULTS.merge(@options.resolver_options)
|
||||||
@nameserver = @resolver_options[:nameserver]
|
@nameserver = Array(@resolver_options[:nameserver]) if @resolver_options[:nameserver]
|
||||||
@ndots = @resolver_options[:ndots]
|
@ndots = @resolver_options[:ndots]
|
||||||
@search = Array(@resolver_options[:search]).map { |srch| srch.scan(/[^.]+/) }
|
@search = Array(@resolver_options[:search]).map { |srch| srch.scan(/[^.]+/) }
|
||||||
@_timeouts = Array(@resolver_options[:timeouts])
|
@_timeouts = Array(@resolver_options[:timeouts])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user