projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5d1d0d
)
add response.reason
author
Kenneth Reitz
<me@kennethreitz.com>
Fri, 15 Jun 2012 18:37:33 +0000
(14:37 -0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Fri, 15 Jun 2012 18:37:33 +0000
(14:37 -0400)
#588
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index
fbf7fc6
..
47316ea
100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-815,6
+815,11
@@
class Response(object):
except ValueError:
return None
+ @property
+ def reason(self):
+ """The HTTP Reason for the response."""
+ return self.raw.reason
+
def raise_for_status(self, allow_redirects=True):
"""Raises stored :class:`HTTPError` or :class:`URLError`, if one occurred."""