From c502709c365944bf251bc248844f0eaf18aadf31 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 1 Feb 2024 12:11:37 +1300 Subject: [PATCH] Remove HTTP_VERSION validation from `Rack::Lint`. --- lib/rack/lint.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/rack/lint.rb b/lib/rack/lint.rb index ceec75ddf..573c9065c 100644 --- a/lib/rack/lint.rb +++ b/lib/rack/lint.rb @@ -288,11 +288,6 @@ def check_environment(env) raise LintError, "env[SERVER_PROTOCOL] does not match HTTP/\\d(\\.\\d)?" end - ## If the HTTP_VERSION is present, it must equal the SERVER_PROTOCOL. - 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 ## HTTP_CONTENT_TYPE or HTTP_CONTENT_LENGTH ## (use the versions without HTTP_).