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
HTTP_VERSION vs SERVER_PROTOCOL and Rack::Lint #2141
Comments
For reference, the Lint check was added in caed808 I think the Lint check was added so that apps/middleware that were using HTTP_VERSION as an alias to SERVER_PROTOCOL don't get client-provided information that they might use incorrectly. Maybe that Lint check can be removed? Servers that want to support both Rack 2 and 3 should do: |
@jeremyevans are you proposing to remove caed808#diff-2db485952a203ded9d5ae1301e35d82601b1c2410f914e767b02c4933b7e8a57R302-R305 If so, I'm also okay with that. |
I think such a lint may still have value, as it pointed me to (maybe) fix Thin: Thin was blindly overwriting |
Yep, I think that can be removed. Servers should not have to deal with request |
IMHO, As we merged #2154 I believe this issue is resolved, but feel free to re-open it if not. |
Since
HTTP_VERSION
is a client supplied header, canHTTP_VERSION
andSERVER_PROTOCOL
differ in practice, or am I misunderstanding #970 #1691 #969 ?Found out via this lint check that blowed up in Thin specs while attempting to move it to Rack 3.0.
The text was updated successfully, but these errors were encountered: