1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Rack 1.4 returns Content-Length: 0 for HEAD requests

This commit is contained in:
Konstantin Haase 2011-12-30 12:15:09 +01:00
parent 88406916d8
commit 31a4f31569

View file

@ -36,7 +36,6 @@ class StaticTest < Test::Unit::TestCase
head "/#{File.basename(__FILE__)}"
assert ok?
assert_equal '', body
assert_equal File.size(__FILE__).to_s, response['Content-Length']
assert response.headers.include?('Last-Modified')
end