gryphonshafer / Email-Mailer

Multi-purpose emailer for HTML, auto-text, attachments, and templates
1 stars 1 forks source link

Fix encode_mimewords call #7

Closed ldidry closed 3 years ago

ldidry commented 3 years ago

If charset is not specified when calling encode_mimewords, it uses ISO-8859-1 as default value, which may not be the correct encoding for the strings.

This commit extracts the charset from Content-Type header and uses it in encode_mimewords call.

coveralls commented 3 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling c4e1b1771b1f1288101ac5f25b1dc4a5a29d2889 on ldidry:fix-encode_mimewords-call into 8ee7dcca696dce4367cb1b00354751e9858effac on gryphonshafer:master.