mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
don't double decode
This commit is contained in:
+2
-1
@@ -752,7 +752,8 @@ class Response(object):
|
||||
|
||||
# Try to fall back:
|
||||
try:
|
||||
content = unicode(content, encoding, errors='replace')
|
||||
if not content:
|
||||
content = unicode(content, encoding, errors='replace')
|
||||
except UnicodeError, TypeError:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user