Store special cookies properly.

"Special" cookies here mean those of public suffixes and IP addresses.
This commit is contained in:
Akinori MUSHA 2013-03-28 02:48:38 +09:00
parent 91b5184d96
commit 4f526857aa

View file

@ -200,7 +200,7 @@ class HTTP::CookieJar
])
@st_add.execute({
:baseDomain => cookie.domain_name.domain,
:baseDomain => cookie.domain_name.domain || cookie.domain,
:appId => @app_id,
:inBrowserElement => @in_browser_element ? 1 : 0,
:name => cookie.name, :value => cookie.value,