Skip to content
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

Headers append & entries are incompatible #137

Open
jamesarosen opened this issue Apr 14, 2020 · 0 comments
Open

Headers append & entries are incompatible #137

jamesarosen opened this issue Apr 14, 2020 · 0 comments

Comments

@jamesarosen
Copy link

jamesarosen commented Apr 14, 2020

What happens

headers.append('foo', 'A')
headers.append('foo', 'B')
headers.entries() // [ ['foo', 'A,B' ] ]

What I expect

headers.append('foo', 'A')
headers.append('foo', 'B')
headers.entries() // [ ['foo', 'A' ], ['foo', 'B' ] ]

This is particularly problematic for Set-Cookie, which is always multiple independent headers, not a single comma-separated header. (And the values often include commas.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant