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

Request: Additional case-normalizing before passing into mime.ParseMediaType #293

Open
CyrusRoshan opened this issue Jun 22, 2023 · 0 comments
Labels

Comments

@CyrusRoshan
Copy link

I currently have an email header value of text/html; charset=utf-8; CHARSET=UTF-8 (in an email from Air Canada, if you were wondering), similar to the text/html; charset=utf-8; charset=UTF-8 reported here.

I think lowercasing the ctype value in mediatype.Parse before passing into mime.ParseMediaType would fix this case with the the intended behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants