Open chernykhdk opened 6 months ago
CC @neild
It seems like it works as per spec.
RFC 6265:
domain-value =
; defined in [RFC1034], Section 3.5, as ; enhanced by [RFC1123], Section 2.1
RFC 1123:
Whenever a user inputs the identity of an Internet host, it SHOULD be possible to enter either (1) a host domain name or (2) an IP address in dotted-decimal ("#.#.#.#") form. The host SHOULD check the string syntactically for a dotted-decimal number before looking it up in the Domain Name System.
It does not specify anything about ipv6.
it does appear that chrome and firefox accept this syntax https://bugzilla.mozilla.org/show_bug.cgi?id=1666678
Go version
go version go1.20.5 linux/amd64
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
in logs:
net/http: invalid Cookie.Domain "[fd7d:844d:3e17:f3ae::1]"; dropping domain attribute
in browser: cookie is missing
What did you expect to see?
i expect to see cookie which exists in browser like as in case of IPv4
i think trouble is in net/http/cookie.go: