lib/html2doc/mime.rb in html2doc-0.8.0 vs lib/html2doc/mime.rb in html2doc-0.8.1

- old
+ new

@@ -34,10 +34,10 @@ end def self.mime_type(item) types = MIME::Types.type_for(item) type = types ? types.first.to_s : 'text/plain; charset="utf-8"' - type = type + ' charset="utf-8"' if /^text/.match?(type) && types + type = type + ' charset="utf-8"' if /^text/.match(type) && types type end def self.mime_boundary salt = UUIDTools::UUID.random_create.to_s.gsub(/-/, ".")[0..17]