Skip to content
Myr

No encoding? r.text is None.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent a3fb5ac · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/models.py+1 added-1 removed
718 unmodified lines
719 def text(self):720 """Content of the response, in unicode."""721722 # Try charset from content-type723 content = u''723 content = None724725 if self.encoding:726 try:727 content = unicode(self.content, self.encoding)
28 unmodified lines