forked from sopel-irc/sopel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[web, url] Move header-based encoding detection to web.get
url.py did this really good thing where it would look for the encoding in the HTTP headers and use them to .decode() the string returned from web.get. web.get() gained (not too long ago) the ability to decode text itself, but it was doing it to utf8 by default. So instead of hardcoding utf8 in web.get, I moved that detection functionality from url to web, so now all modules using web.get will be able to enjoy it.
- Loading branch information
Elad Alfassa
committed
Aug 6, 2014
1 parent
5f5bc0f
commit 9604bfc
Showing
2 changed files
with
16 additions
and
18 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
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