1
0
mirror of https://github.com/golang/go synced 2024-11-15 04:40:28 -07:00
go/api/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
..
42888.txt
44940.txt unicode/utf16: add func RuneLen 2024-03-07 19:08:48 +00:00
46443.txt net/http: add field Cookie.Quoted bool 2024-04-19 00:32:19 +00:00
50102.txt archive/tar: add FileInfoNames interface 2024-03-15 16:01:50 +00:00
57151.txt path/filepath: add Localize 2024-02-26 18:08:14 +00:00
59473.txt net/http/httptest: add NewRequestWithContext 2024-03-11 18:09:14 +00:00
60427.txt reflect: add Overflow methods to Type 2024-02-28 14:08:38 +00:00
61308.txt all: add reflect.SliceAt function 2024-04-02 21:51:18 +00:00
61472.txt net/http: add Request.CookiesNamed 2024-03-20 16:17:16 +00:00
61696.txt sync: add Map.Clear 2024-02-01 15:34:22 +00:00
62254.txt net: add KeepAliveConfig and implement SetKeepAliveConfig 2024-02-20 06:04:31 +00:00
62484.txt os: implement CopyFS 2024-02-23 00:19:54 +00:00
63116.txt net: add Unwrap to *DNSError 2024-04-14 18:23:45 +00:00
65238.txt slices: add func Repeat 2024-03-19 21:38:37 +00:00
65772.txt go/types: add Func.Signature method 2024-04-18 22:17:27 +00:00
66008.txt net/http: add ParseCookie, ParseSetCookie 2024-04-17 17:43:50 +00:00
66054.txt cmd/link,debug/elf: mark Go binaries with no branch target CFI on openbsd 2024-03-10 04:13:26 +00:00
66836.txt debug/elf: define non-standard but well-known symbol types 2024-04-16 00:01:16 +00:00