Skip to content
Myr

Merge pull request #477 from maxcountryman/develop

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

potentially fixes #338

authored by Kenneth Reitz · committed by Kenneth Reitz · parents dc7029e, 83a9f2c · Browse files · 1 file+6 added−0 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+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:requests/models.py+6 added
798 unmodified lines
799800 # Decode unicode from given encoding.801 try:802 content = str(self.content, encoding, errors='replace')803 except LookupError:804 # A LookupError is raised if the encoding was not found which could805 # indicate a misspelling or similar mistake.806 #807 # So we try blindly encoding.808 content = str(self.content, errors='replace')809 except (UnicodeError, TypeError):810 pass811812 return content
22 unmodified lines