make empty body text responses work

#660
This commit is contained in:
Kenneth Reitz
2012-06-07 21:55:07 -04:00
parent e8f3fc33bb
commit 843672f4fe
+3
View File
@@ -785,6 +785,9 @@ class Response(object):
content = None
encoding = self.encoding
if not self.content:
return u''
# Fallback to auto-detected encoding.
if self.encoding is None:
if chardet is not None: