Drop HTTP::Cookie#set_domain.

This commit is contained in:
Akinori MUSHA 2012-10-17 21:50:24 +09:00
parent 0cf86222f6
commit 6110545ff9

View file

@ -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)