mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Treat as binary if encoding is nil
This commit is contained in:
@@ -94,7 +94,7 @@ module Linguist
|
||||
if mime_type = Mime.lookup_mime_type_for(pathname.extname)
|
||||
mime_type.binary?
|
||||
else
|
||||
detect_encoding.nil? || detect_encoding[:type] == :binary
|
||||
encoding.nil? || detect_encoding[:type] == :binary
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user