-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify character encoding handling in raw body reader (#209)
It turns out the Go stdlib already provides a ready-made solution for decoding HTTP responses to UTF-8. It comprehensively checks both the charset in the Content-Type header and attempts to infer the encoding from the appropriate charset or http-equiv/content-type <meta> tags.
- Loading branch information
1 parent
86e02b7
commit 8e17bb6
Showing
1 changed file
with
1 addition
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters