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
Application handling of field names #844
Conversation
Co-authored-by: Julian Reschke <julian.reschke@gmx.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to clean up the comments to improve the text.
Co-authored-by: Mark Nottingham <mnot@mnot.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is my suggested rewrite.
section 4.1.8 is better as a reference https://datatracker.ietf.org/doc/html/rfc3875#section-4.1.18 though it reminds me that CONTENT_LENGTH is already protected, so our example is wrong. Maybe we should change it to a Transfer-Encoding example, but we can't do that because that's only defined in 1.1. |
The interface maps the Content-Length header field to CONTENT_LENGTH, not HTTP_CONTENT_LENGTH, and CGI-based applications will always look to the CONTENT_LENGTH value regardless of the presence of HTTP_CONTENT_LENGTH. |
Though, if someone were foolish enough to write an HTTP-CGI-HTTP gateway, all bets are off. |
I edited my suggestion again to be more specific about CGI and CGI legacy, and to fix the incorrect example of CONTENT_LENGTH. This may require adding an informative reference for RFC3875. |
Co-authored-by: Roy T. Fielding <fielding@gbiv.com>
Fixes #843