-
Notifications
You must be signed in to change notification settings - Fork 18k
net/http: add field Cookie.Quoted bool #66752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This PR (HEAD: 5b8c692) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/577755. Important tips:
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
Message from Nuno Miguel Rodrigues Gonçalves: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
Message from Damien Neil: Patch Set 2: Commit-Queue+1 (5 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
Message from Go LUCI: Patch Set 2: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-04-10T20:19:51Z","revision":"5259181d268a22c534acd6c3bf77c7b966a02c77"} Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
Message from Damien Neil: Patch Set 2: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
Message from Go LUCI: Patch Set 2: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
Message from Go LUCI: Patch Set 2: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
5b8c692
to
f925ff3
Compare
This PR (HEAD: f925ff3) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/577755. Important tips:
|
Message from Nuno Miguel Rodrigues Gonçalves: Patch Set 2: (4 comments) Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
Message from Damien Neil: Patch Set 3: Code-Review+2 Commit-Queue+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
Message from Go LUCI: Patch Set 3: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-04-15T20:50:19Z","revision":"0773703ca44413e7bbbb979da194f46fcafd3d1c"} Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
Message from Damien Neil: Patch Set 3: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
Message from Go LUCI: Patch Set 3: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
Message from Go LUCI: Patch Set 3: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
Message from Cherry Mui: Patch Set 3: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
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 golang#46443 Co-authored-by: Fábio Mata <[email protected]>
f925ff3
to
a76440e
Compare
This PR (HEAD: a76440e) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/go/+/577755. Important tips:
|
Message from Damien Neil: Patch Set 4: Code-Review+2 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
Message from Go LUCI: Patch Set 4: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2024-04-18T23:55:19Z","revision":"5528c4b6037ae4c0c018f5fc84b4b924a1c2bdb2"} Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
Message from Damien Neil: Patch Set 4: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
Message from Go LUCI: Patch Set 4: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
Message from Go LUCI: Patch Set 4: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/577755. |
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: a76440e GitHub-Pull-Request: #66752 Reviewed-on: https://go-review.googlesource.com/c/go/+/577755 Reviewed-by: Damien Neil <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
This PR is being closed because golang.org/cl/577755 has been merged. |
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