mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-04-27 14:57:46 +00:00
Refer to the instance variable @domain instead of the accessor.
This commit is contained in:
parent
75f7ee6505
commit
c3e4fae60c
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue