Assume utf8 when serving raw text blobs

This commit is contained in:
Joshua Peek
2011-06-23 16:51:03 -05:00
parent bb7722d43a
commit 6f03cfc67c
3 changed files with 11 additions and 11 deletions

View File

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