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
alias set_domain domain=
# Sets the domain attribute. A leading dot in +domain+ implies
# turning the +for_domain?+ flag on.
def domain=(domain)
@ -183,7 +181,7 @@ class HTTP::Cookie
end
@domain_name = DomainName.new(domain)
end
set_domain(@domain_name.hostname)
@domain = @domain_name.hostname
end
def expires=(t)