mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	Assume utf8 when serving raw text blobs
This commit is contained in:
		@@ -35,14 +35,14 @@ class TestBlob < Test::Unit::TestCase
 | 
			
		||||
    assert_equal "application/octet-stream", blob("dog.o").content_type
 | 
			
		||||
    assert_equal "application/pdf", blob("foo.pdf").content_type
 | 
			
		||||
    assert_equal "image/png", blob("foo.png").content_type
 | 
			
		||||
    assert_equal "text/plain", blob("README").content_type
 | 
			
		||||
    assert_equal "text/plain", blob("foo.html").content_type
 | 
			
		||||
    assert_equal "text/plain", blob("foo.pl").content_type
 | 
			
		||||
    assert_equal "text/plain", blob("foo.py").content_type
 | 
			
		||||
    assert_equal "text/plain", blob("foo.rb").content_type
 | 
			
		||||
    assert_equal "text/plain", blob("foo.sh").content_type
 | 
			
		||||
    assert_equal "text/plain", blob("foo.xhtml").content_type
 | 
			
		||||
    assert_equal "text/plain", blob("foo.xml").content_type
 | 
			
		||||
    assert_equal "text/plain; charset=utf8", blob("README").content_type
 | 
			
		||||
    assert_equal "text/plain; charset=utf8", blob("foo.html").content_type
 | 
			
		||||
    assert_equal "text/plain; charset=utf8", blob("foo.pl").content_type
 | 
			
		||||
    assert_equal "text/plain; charset=utf8", blob("foo.py").content_type
 | 
			
		||||
    assert_equal "text/plain; charset=utf8", blob("foo.rb").content_type
 | 
			
		||||
    assert_equal "text/plain; charset=utf8", blob("foo.sh").content_type
 | 
			
		||||
    assert_equal "text/plain; charset=utf8", blob("foo.xhtml").content_type
 | 
			
		||||
    assert_equal "text/plain; charset=utf8", blob("foo.xml").content_type
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def test_disposition
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user