diff options
| author | cuishuang <imcusg@gmail.com> | 2025-12-04 11:39:53 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2025-12-05 07:30:36 -0800 |
| commit | a70addd3b31ccb685f48867e24c6c2b4dc364a11 (patch) | |
| tree | a93210950419121eeb342832e06acbb3a54a0b7e /src/net/http | |
| parent | 93b49f773d1a4b706f5352dffb912c259c15dc4f (diff) | |
| download | go-a70addd3b31ccb685f48867e24c6c2b4dc364a11.tar.xz | |
all: fix some comment issues
Change-Id: I5dec35b1432705b3a52859c38e758220282226af
Reviewed-on: https://go-review.googlesource.com/c/go/+/726700
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'src/net/http')
| -rw-r--r-- | src/net/http/cookie.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/http/cookie.go b/src/net/http/cookie.go index f74bc1043c..4cc9ae3152 100644 --- a/src/net/http/cookie.go +++ b/src/net/http/cookie.go @@ -443,7 +443,8 @@ func isCookieDomainName(s string) bool { } if s[0] == '.' { - // A cookie a domain attribute may start with a leading dot. + // A cookie domain attribute may start with a leading dot. + // Per RFC 6265 section 5.2.3, a leading dot is ignored. s = s[1:] } last := byte('.') |
