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:
2a0eff9
)
post_request hook
author
Kenneth Reitz
<me@kennethreitz.com>
Wed, 17 Aug 2011 04:33:28 +0000
(
00:33
-0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Wed, 17 Aug 2011 04:33:28 +0000
(
00:33
-0400)
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index
daf48ea
..
f9670a4
100644
(file)
--- a/
requests/models.py
+++ b/
requests/models.py
@@
-370,6
+370,9
@@
class Request(object):
self.sent = self.response.ok
+ self.__dict__.update(
+ dispatch_hook('post_request', self.hooks, self.__dict__))
+
return self.sent