net/http: parsing cookie enclosed with double quote fails #33147
Labels
Comments
I suspect you're interpreting the RFC wrong. See Brad's answer on this dup of this issue: #10195 (comment) |
Thank you for the precious comment. I completely agree. foo=bar and foo="bar" should have no difference. Design should not depend on the trivial enclosing double quote. Unfortunately some system does not. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Please answer these questions before submitting your issue. Thanks!
What did you do?
https://play.golang.org/p/wHVuJ-QVq8L
What did you expect to see?
What did you see instead?
System details
Cookie is defined as below
The cookie-value rule has two alternatives:
*cookie-octetc
andDQUOTE *cookie-octetc DQUOTE
. Cookie parser does not handle the DQUOTE alternative.The text was updated successfully, but these errors were encountered: