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:
parent
88406916d8
commit
31a4f31569
1 changed files with 0 additions and 1 deletions
|
@ -36,7 +36,6 @@ class StaticTest < Test::Unit::TestCase
|
||||||
head "/#{File.basename(__FILE__)}"
|
head "/#{File.basename(__FILE__)}"
|
||||||
assert ok?
|
assert ok?
|
||||||
assert_equal '', body
|
assert_equal '', body
|
||||||
assert_equal File.size(__FILE__).to_s, response['Content-Length']
|
|
||||||
assert response.headers.include?('Last-Modified')
|
assert response.headers.include?('Last-Modified')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue