1
0
mirror of https://github.com/golang/go synced 2024-11-14 20:10:30 -07:00
go/doc/next
Nuno Gonçalves a63907808d net/http: add field Cookie.Quoted bool
The current implementation of the http package strips double quotes
from the cookie-value during parsing, resulting in the serialized
cookie not including them. This patch addresses this limitation by
introducing a new field to track whether the original value was
enclosed in quotes.

Additionally, the internal representation of a cookie in the cookiejar
package has been adjusted to align with the new representation.

The syntax of cookies is outlined in RFC 6265 Section 4.1.1:
https://datatracker.ietf.org/doc/html/rfc6265\#section-4.1.1

Fixes #46443

Change-Id: Iac12a56397d77a6060a75757ab0daeacc60457f3
GitHub-Last-Rev: a76440e741
GitHub-Pull-Request: golang/go#66752
Reviewed-on: https://go-review.googlesource.com/c/go/+/577755
Reviewed-by: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
2024-04-19 00:32:19 +00:00
..
6-stdlib net/http: add field Cookie.Quoted bool 2024-04-19 00:32:19 +00:00
1-intro.md
2-language.md
3-tools.md Revert "cmd/go/internal/test: add 'tests' vet check to 'go test' suite" 2024-03-14 16:58:10 +00:00
4-runtime.md
5-toolchain.md cmd/go: use cache for PGO preprocessing 2024-04-18 15:39:17 +00:00
7-ports.md misc/wasm: drop wasmtime < 14 support 2024-04-11 17:09:10 +00:00