Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of looking for "html" substring, actually parse the MIME type string. Don't use mime.ParseMediaType though as it doesn't handle invalid duplicate parameters (e.g. "text/html; charset=UTF-8; charset=utf-8") that occur in the wild.
- Loading branch information