Fix broken spec

HTTP ranges with non decimal characters is treated as range 0..0 as of Rack 2.2.6.2.
This commit is contained in:
Jordan Owens 2023-01-22 19:28:40 -05:00 committed by GitHub
parent b9f64fcbb3
commit 5baa1c8ddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class StaticTest < Minitest::Test
end
it 'correctly ignores syntactically invalid range requests' do
["bytes=45-40", "bytes=IV-LXVI", "octets=10-20", "bytes=", "bytes=3-1,4-5"].each do |http_range|
["bytes=45-40", "octets=10-20", "bytes=", "bytes=3-1,4-5"].each do |http_range|
request = Rack::MockRequest.new(@app)
response = request.get("/#{File.basename(__FILE__)}", 'HTTP_RANGE' => http_range)