mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-04-27 14:57:46 +00:00
Drop HTTP::Cookie#set_domain.
This commit is contained in:
parent
0cf86222f6
commit
6110545ff9
1 changed files with 1 additions and 3 deletions
|
|
@ -162,8 +162,6 @@ class HTTP::Cookie
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
alias set_domain domain=
|
|
||||||
|
|
||||||
# Sets the domain attribute. A leading dot in +domain+ implies
|
# Sets the domain attribute. A leading dot in +domain+ implies
|
||||||
# turning the +for_domain?+ flag on.
|
# turning the +for_domain?+ flag on.
|
||||||
def domain=(domain)
|
def domain=(domain)
|
||||||
|
|
@ -183,7 +181,7 @@ class HTTP::Cookie
|
||||||
end
|
end
|
||||||
@domain_name = DomainName.new(domain)
|
@domain_name = DomainName.new(domain)
|
||||||
end
|
end
|
||||||
set_domain(@domain_name.hostname)
|
@domain = @domain_name.hostname
|
||||||
end
|
end
|
||||||
|
|
||||||
def expires=(t)
|
def expires=(t)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue