Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve robustness of charset handling when parsing HTML.
Between the server-provided and automatically detected Content-Type of text types, use the value that includes charset specification. This handles the case when the server sends a plain "text/html" Content-Type, but the code detects it to be a more specific "text/html; charset=utf-8".
- Loading branch information