Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regression in content_type for text part after converted to multi…
…part This was broken by 404ecdd. It removed the setting of the default :content_type entry for the text part, before copying the content fields to the text part. This puts back the setting of the default :content_type entry for the text part. In 2.7.1: ```ruby m = Mail.new m.body 'c' m.add_file :filename=>'a.txt', :content=>'b' m.parts.first.content_type =~ /text\/plain/ # => 0 ``` Before this commit: ```ruby m = Mail.new m.body 'c' m.add_file :filename=>'a.txt', :content=>'b' m.parts.first.content_type =~ /text\/plain/ # => nil m.encoded m.parts.first.content_type =~ /text\/plain/ # => 0 ``` After this commit: ```ruby m = Mail.new m.body 'c' m.add_file :filename=>'a.txt', :content=>'b' m.parts.first.content_type =~ /text\/plain/ # => 0 ```
- Loading branch information