On Tue, Jan 27, 2015 at 1:44 AM, <
jk.lee....@gmail.com> wrote:
>
https://github.com/golang/go/blob/master/src/net/http/cookie.go#L144-L151
It's been a while since I've looked at this, but the relevant spec for
HTTP Cookies is RFC 6265, and sections 4 and 5 deal with servers and
clients.
Section 4.1.2.3. The Domain Attribute says that:
Note that a leading %x2E ("."), if present, is ignored even though
that character is not permitted.
Section 5.2.3. The Domain Attribute says that:
If the first character of the attribute-value string is %x2E ("."):
Let cookie-domain be the attribute-value without the leading %x2E
(".") character.