Permalink
Browse files

Merge pull request #1080 from sigmavirus24/master

Fix #1079
  • Loading branch information...
2 parents 47fe258 + 5264c71 commit b4505284f2e8145e46e398c494b25b44a3bd03b4 @kennethreitz kennethreitz committed Jan 7, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 requests/adapters.py
View
@@ -94,6 +94,7 @@ def build_response(self, req, resp):
# Set encoding.
response.encoding = get_encoding_from_headers(response.headers)
response.raw = resp
+ response.reason = response.raw.reason
if isinstance(req.url, bytes):
response.url = req.url.decode('utf-8')

0 comments on commit b450528

Please sign in to comment.