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:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user