From 7836536459b6a15796c004440d3f927281808455 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 17 Aug 2011 00:33:28 -0400 Subject: [PATCH] post_request hook --- requests/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/requests/models.py b/requests/models.py index daf48ea..f9670a4 100644 --- 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 -- 2.7.4