Skip to content
Myr

adding comment

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

authored by Nate Prewitt · committed by Nate Prewitt · parent cd056cd · Browse files · 1 file+4 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+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:requests/models.py+4 added
846 unmodified lines
847 """Raises stored :class:`HTTPError`, if one occurred."""848849 http_error_msg = ''850 if isinstance(self.reason, bytes):851 # We attempt to decode utf-8 first because some servers852 # choose to localize their reason strings. If the string853 # isn't utf-8, we fall back to iso-8859-1 for all other854 # encodings. (See PR #3538)855 try:856 reason = self.reason.decode('utf-8')857 except UnicodeDecodeError:858 reason = self.reason.decode('iso-8859-1')
24 unmodified lines