-
Notifications
You must be signed in to change notification settings - Fork 209
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
Cookie.parse ignores multiple field values #88
Comments
From RFC6265 section 3:
So, I don't think we should modify Cookie.parse to support this. |
What is the workaround for this? |
@gajus did you find a workaround or an alternate library that parses cookies with the same name? See jshttp/cookie#60 (comment) |
What if one is going to parse |
@information-security The Cookie specification explicitly states that there is a conflict between how HTTP header field folding uses the Therefore, when a request contains multiple cookies, the |
@colincasey |
@information-security I did misunderstand you. Most of the discussion in this issue relates to parsing multiple cookies from the Your comment makes much more sense now. Could you open a new issue for your request? |
Sorry for being late. Sure, I did (#410). |
Per RFC 2616:
If you pass a
set-cookie
header toCookie.parse
and that header contains multiple comma-separated field values, the first value is parsed correctly but subsequent ones are ignored. For example:Is there a way to correctly parse multiple cookie values from a header, and if not, can
Cookie.parse
be modified to support this?The text was updated successfully, but these errors were encountered: