lib/httpx/domain_name.rb in httpx-0.17.0 vs lib/httpx/domain_name.rb in httpx-0.18.0
- old
+ new
@@ -121,10 +121,10 @@
# Do not perform subdomain matching against IP addresses.
@hostname == domain.hostname if @ipaddr
# RFC 6265 #4.1.1
# Domain-value must be a subdomain.
- @domain && self <= domain && domain <= @domain ? true : false
+ @domain && self <= domain && domain <= @domain
end
# def ==(other)
# other = DomainName.new(other)
# other.hostname == @hostname