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
Multiple headers with same name should be treated as a list #224
Comments
The trick with this is doing it in an efficient way. Let me take a stab at it. |
@rsyed83 You are talking specifically about accessing multiple headers from the |
OK, so I looked into this and not sure why I didn't think of this off the bat, but the WSGI environ is a dict, and so it cannot hold duplicate header names in it. I tested wsgiref, gunicorn, and uwsgi. The first two combined the duplicate header lines into a comma-delimited string. However, uwsgi only retained the last headervalue. @rsyed83 Are you running uwsgi? |
@kgriffs We are running uwsgi in barbican and we're seeing this too. Seems like it might be their bug? |
@kgriffs yeah we're using uwsgi as well. Thanks for looking into it from the falcon perspective, didn't realize it'd be something handled in the layer above. |
Glad to help! Please let me know if you are able to confirm this is a uwsgi bug. |
I'll ask the uWSGI list about this one. |
Per ever-responsive Robert De Ioris with uWSGI: This patch adds support for combining headers when in native http mode: Regarding when this patch might be released, he mentioned: |
Cool, thanks for following up with the uWSGI folks! |
Closing this bug since it isn't Falcon's. |
I'd like to submit for consideration handling of multiple HTTP headers with the same name. Currently, it appears that falcon is selecting one of the values while discarding the remainder.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
In particular, this issue is arising with a newer version of Repose which splits any of its internal headers that are comma delimited.
The text was updated successfully, but these errors were encountered: