mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-03 00:01:18 -04:00
Doh: initialize the dns resolver, so name candidate calculation actually works for non-absolute domains
This commit is contained in:
parent
c5b3d849ce
commit
1e2cf12f6e
@ -39,6 +39,7 @@ module HTTPX
|
||||
@uri_addresses = nil
|
||||
@resolver = Resolv::DNS.new
|
||||
@resolver.timeouts = @resolver_options.fetch(:timeouts, Resolver::RESOLVE_TIMEOUT)
|
||||
@resolver.lazy_initialize
|
||||
end
|
||||
|
||||
def <<(connection)
|
||||
|
Loading…
x
Reference in New Issue
Block a user