You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix regression in content_type for text part after converted to multipart
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
```
0 commit comments