Skip to content
Myr

Merge https://github.com/kennethreitz/requests into develop

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

authored by Michael Newman · committed by Michael Newman · parents d6827a3, 9cf9d76 · Browse files · 2 files+7 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

2 files+7 added−1 removed

  • other:+7 added−1 removed

2 files+7 added−1 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
modified:README.rst+1 added-1 removed
71 unmodified lines
72#. Write a test which shows that the bug was fixed or that the feature works as expected.73#. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS_.7475.. _`the repository`: http://github.com/kennethreitz/requests76.. _AUTHORS: http://github.com/kennethreitz/requests/blob/master/AUTHORS76.. _AUTHORS: https://github.com/kennethreitz/requests/blob/develop/AUTHORS.rst