No encoding? r.text is None.

This commit is contained in:
Kenneth Reitz
2012-01-21 17:48:51 -05:00
parent a3fb5ac326
commit 70e98e47cf
+1 -1
View 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: