Refer to the instance variable @domain instead of the accessor.

This commit is contained in:
Akinori MUSHA 2012-10-18 18:59:37 +09:00
parent 75f7ee6505
commit c3e4fae60c

View file

@ -251,11 +251,11 @@ class HTTP::Cookie
# RFC 6265 5.3 # RFC 6265 5.3
# When the user agent "receives a cookie": # When the user agent "receives a cookie":
return domain.nil? || host.hostname == domain unless @for_domain return @domain.nil? || host.hostname == @domain unless @for_domain
if host.cookie_domain?(@domain_name) if host.cookie_domain?(@domain_name)
true true
elsif host.hostname == domain elsif host.hostname == @domain
@for_domain = false @for_domain = false
true true
else else