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:
parent
b9f64fcbb3
commit
5baa1c8ddc
|
@ -164,7 +164,7 @@ class StaticTest < Minitest::Test
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'correctly ignores syntactically invalid range requests' do
|
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)
|
request = Rack::MockRequest.new(@app)
|
||||||
response = request.get("/#{File.basename(__FILE__)}", 'HTTP_RANGE' => http_range)
|
response = request.get("/#{File.basename(__FILE__)}", 'HTTP_RANGE' => http_range)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue