Serve actual content-type, not simplified

This commit is contained in:
Joshua Peek
2011-10-06 18:04:29 -04:00
parent 5842ba38f0
commit 8c135a9eff
4 changed files with 30 additions and 30 deletions

View File

@@ -55,7 +55,7 @@ module Linguist
# Return mime type String otherwise falls back to 'text/plain'.
def self.mime_for(ext)
mime_type = lookup_mime_type_for(ext)
mime_type ? mime_type.simplified : 'text/plain'
mime_type ? mime_type.to_s : 'text/plain'
end
# Internal: Lookup mime type for extension or mime type