Set content-type to text/plain for all non binary files

This commit is contained in:
Joshua Peek
2011-06-03 11:21:16 -05:00
parent 40efc2bd44
commit 734cc29391
6 changed files with 13 additions and 128 deletions

View File

@@ -59,8 +59,8 @@ class TestPathname < Test::Unit::TestCase
end
def test_content_type
assert_equal 'text/plain; charset=utf-8', Pathname.new("file.txt").content_type
assert_equal 'text/plain; charset=utf-8', Pathname.new("file.rb").content_type
assert_equal 'text/plain', Pathname.new("file.txt").content_type
assert_equal 'text/plain', Pathname.new("file.rb").content_type
assert_equal 'image/png', Pathname.new("octocat.png").content_type
end
end