# File lib/cookiejar/cookie_validation.rb, line 212 def self.effective_host host_or_uri hostname = to_domain host_or_uri hostname = hostname.downcase if /.[\.:]./.match(hostname) || hostname == '.local' hostname else hostname + '.local' end end