lib/padrino-mailer/mime.rb in padrino-mailer-0.12.2 vs lib/padrino-mailer/mime.rb in padrino-mailer-0.12.3
- old
+ new
@@ -25,10 +25,10 @@
# This is a shortcut for:
#
# Padrino::Mailer::Mime::MIME_TYPES.fetch('text/plain', :plain)
#
def self.mime_type(mime, fallback=:plain)
- MIME_TYPES.fetch(mime.to_s.downcase, fallback)
+ MIME_TYPES.fetch(mime.to_s.split(';').first.to_s.downcase, fallback)
end
##
# List of common mime-types, selected from various sources
# according to their usefulness for an email scope.