mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Set content-type to text/plain for all non binary files
This commit is contained in:
@@ -107,7 +107,7 @@ module Linguist
|
||||
#
|
||||
# Returns a content type String.
|
||||
def content_type
|
||||
@content_type ||= Mime.content_type_for(extname)
|
||||
@content_type ||= binary? ? mime_type : 'text/plain'
|
||||
end
|
||||
|
||||
# Public: Is the path binary?
|
||||
|
||||
Reference in New Issue
Block a user