-
Notifications
You must be signed in to change notification settings - Fork 787
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
Add support for comma separated headers #7431
Comments
Actually, I'm not sure that the server
Also, in the latest spec
|
Hi,
We noticed that there is a difference in how headers are parsed depending on how multiple headers are passed.
It is ok if they are passed separately:
then on the scala side this is represented as
Some(NonEmptyList(X-Foo: 123, X-Foo: 456))
but according to the RFC passing them as a comma separated list should be equivalent:
$ curl localhost:8080 -H "X-Foo:123, 456"
However above is represented as
Some(NonEmptyList(X-Foo: 123, 456))
Since http4s does already a great job when it comes to parsing low-level http data in every other area we wonder whether it would make sense also to support this case. What do you think?
tested on: 0.23.25
The text was updated successfully, but these errors were encountered: