lib/httpx/resolver/native.rb in httpx-0.24.7 vs lib/httpx/resolver/native.rb in httpx-1.0.0
- old
+ new
@@ -6,23 +6,15 @@
module HTTPX
class Resolver::Native < Resolver::Resolver
extend Forwardable
using URIExtensions
- DEFAULTS = if RUBY_VERSION < "2.2"
- {
- **Resolv::DNS::Config.default_config_hash,
- packet_size: 512,
- timeouts: Resolver::RESOLVE_TIMEOUT,
- }
- else
- {
- nameserver: nil,
- **Resolv::DNS::Config.default_config_hash,
- packet_size: 512,
- timeouts: Resolver::RESOLVE_TIMEOUT,
- }
- end.freeze
+ DEFAULTS = {
+ nameserver: nil,
+ **Resolv::DNS::Config.default_config_hash,
+ packet_size: 512,
+ timeouts: Resolver::RESOLVE_TIMEOUT,
+ }.freeze
DNS_PORT = 53
def_delegator :@connections, :empty?