~ubuntuone-pqm-team/requests/stable

« back to all changes in this revision

Viewing changes to requests/adapters.py

  • Committer: Ian Cordasco
  • Date: 2013-01-02 19:25:33 UTC
  • mto: This revision was merged to the branch mainline in revision 811.
  • Revision ID: git-v1:5264c71d86c078f60b9880cc0f481c7fea2b41db
Fix #1079

Restore the functionality from here:
https://github.com/kennethreitz/requests/blob/v0.14.2/requests/models.py#L884

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
        # Set encoding.
95
95
        response.encoding = get_encoding_from_headers(response.headers)
96
96
        response.raw = resp
 
97
        response.reason = response.raw.reason
97
98
 
98
99
        if isinstance(req.url, bytes):
99
100
            response.url = req.url.decode('utf-8')