don't let that happen...
authorKenneth Reitz <me@kennethreitz.com>
Mon, 23 Jan 2012 07:19:56 +0000 (02:19 -0500)
committerKenneth Reitz <me@kennethreitz.com>
Mon, 23 Jan 2012 07:19:56 +0000 (02:19 -0500)
requests/models.py

index c954026..c200896 100644 (file)
@@ -783,8 +783,6 @@ class Response(object):
             except (UnicodeError, TypeError):
                 pass
 
-        if not content:
-            content = str(content, encoding, errors='replace')
         return content