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

@@ -87,7 +87,7 @@ module Linguist
#
# Returns a content type String.
def content_type
@content_type ||= binary? ? mime_type : 'text/plain'
@content_type ||= binary? ? mime_type : 'text/plain; charset=utf8'
end
# Public: Is the path binary?