No encoding? r.text is None.
authorKenneth Reitz <me@kennethreitz.com>
Sat, 21 Jan 2012 22:48:51 +0000 (17:48 -0500)
committerKenneth Reitz <me@kennethreitz.com>
Sat, 21 Jan 2012 22:48:51 +0000 (17:48 -0500)
requests/models.py

index 4ef45da..be69213 100644 (file)
@@ -720,7 +720,7 @@ class Response(object):
         """Content of the response, in unicode."""
 
         # Try charset from content-type
-        content = u''
+        content = None
 
         if self.encoding:
             try: