don't double decode

This commit is contained in:
Kenneth Reitz
2012-01-21 22:56:53 -05:00
parent b725bfd3fb
commit 2c7e920298
+2 -1
View File
@@ -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