class Sentry::RequestInterface
def is_server_protocol?(key, value, protocol_version)
if the request has legitimately sent a Version header themselves.
env['SERVER_PROTOCOL']. But we don't want to ignore a valid header
to think this is a Version header. Instead, this is mapped to
In versions < 3, Rack adds in an incorrect HTTP_VERSION key, which causes downstream
def is_server_protocol?(key, value, protocol_version) rack_version = Gem::Version.new(::Rack.release) return false if rack_version >= Gem::Version.new("3.0") key == 'HTTP_VERSION' && value == protocol_version end