Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix encode_mimewords call #7

Merged

Conversation

ldidry
Copy link
Contributor

@ldidry ldidry commented Sep 14, 2020

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.

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
Copy link

coveralls commented Sep 14, 2020

Coverage Status

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

@gryphonshafer gryphonshafer merged commit c4e1b17 into gryphonshafer:master Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants