mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Set content-type to text/plain for all non binary files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user