You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The quoting in the RFC is for encoding it.
Note that foo=bar and foo="bar" both yield a Cookie.Value of bar. The quotes are just there to encode and protect the real value.
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.
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: