mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Add text media types are plain
This commit is contained in:
@@ -9,6 +9,8 @@ module MIME
|
|||||||
def binary?
|
def binary?
|
||||||
if defined? @binary
|
if defined? @binary
|
||||||
@binary
|
@binary
|
||||||
|
elsif media_type == 'text'
|
||||||
|
false
|
||||||
else
|
else
|
||||||
@encoding == 'base64'
|
@encoding == 'base64'
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user