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
Splitting on ', ' won't work. Though it can be parsed, but for other headers (maybe non-standard ones) it'll become impossible. If it's too late to make the value a list or something, what about a user-provided header callback that will run on each complete header line?
The text was updated successfully, but these errors were encountered:
Origin servers SHOULD NOT fold multiple Set-Cookie header fields into a single header field. The usual mechanism for folding HTTP headers fields (i.e., as defined in [RFC2616]) might change the semantics of the Set-Cookie header field because the %x2C (",") character is used by Set-Cookie in a way that conflicts with such folding.
A way to bypass this kind of folding sounds useful in some cases.
@Ousret i deleted your comment. Either you participate there or not. But shameless advertising is not tolerated. You can contact me privately if you want to see how we can eventually improve headers handling.
Sorry. @benoitc Wasn't trying to harm anyone. I do not consider sharing open-source work that actually resolves actual problems as "shameless advertising". But I respect your opinion nonetheless. 🍻 cheers.
Regards
When there are duplicate headers, http-parser concatenates them with ', '. This makes it difficult to parse the individual cookies, e.g.:
Splitting on ', ' won't work. Though it can be parsed, but for other headers (maybe non-standard ones) it'll become impossible. If it's too late to make the value a list or something, what about a user-provided header callback that will run on each complete header line?
The text was updated successfully, but these errors were encountered: