mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +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
|
||||
# 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)
|
||||
true
|
||||
elsif host.hostname == domain
|
||||
elsif host.hostname == @domain
|
||||
@for_domain = false
|
||||
true
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue