From 1dd16745e3479810db88c453604e49e2ee7d24e9 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Sun, 21 Apr 2013 19:28:12 +0900 Subject: [PATCH] Update a comment. --- lib/http/cookie.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/http/cookie.rb b/lib/http/cookie.rb index 03ada05..959af27 100644 --- a/lib/http/cookie.rb +++ b/lib/http/cookie.rb @@ -288,7 +288,9 @@ class HTTP::Cookie case aname when 'domain' cookie.for_domain = true - cookie.domain = avalue # This may negate @for_domain + # The following may negate @for_domain if the value is + # an eTLD or IP address, hence this order. + cookie.domain = avalue when 'path' cookie.path = avalue when 'expires'