net/http: readCookies accepts empty cookie in 1.18 #53026
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No
go1.13 - go1.17 can reproduce it.
go1.12、go1.18 can not reproduce it.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/WLdtvbm5FHx?v=goprev
What did you expect to see?
same as go1.18/go1.12 's result:
What did you see instead?
How to Fix
go/src/net/http/cookie.go
Line 259 in 085c61a
fix it:
The text was updated successfully, but these errors were encountered: