Skip to content

Commit

Permalink
Remove HTTP_VERSION validation from Rack::Lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 31, 2024
1 parent 25e0e01 commit c502709
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/rack/lint.rb
Expand Up @@ -288,11 +288,6 @@ def check_environment(env)
raise LintError, "env[SERVER_PROTOCOL] does not match HTTP/\\d(\\.\\d)?"
end

## If the <tt>HTTP_VERSION</tt> is present, it must equal the <tt>SERVER_PROTOCOL</tt>.
if env['HTTP_VERSION'] && env['HTTP_VERSION'] != server_protocol
raise LintError, "env[HTTP_VERSION] does not equal env[SERVER_PROTOCOL]"
end

## The environment must not contain the keys
## <tt>HTTP_CONTENT_TYPE</tt> or <tt>HTTP_CONTENT_LENGTH</tt>
## (use the versions without <tt>HTTP_</tt>).
Expand Down

0 comments on commit c502709

Please sign in to comment.