From: Kenneth Reitz Date: Sun, 23 Oct 2011 18:47:15 +0000 (-0400) Subject: Add argument injection hook back X-Git-Tag: v0.7.1~1^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=68b48309480db3a95372967fe9c005d612c91ea0;p=services%2Fpython-requests.git Add argument injection hook back --- diff --git a/requests/sessions.py b/requests/sessions.py index f1124ae..9c7f32c 100644 --- a/requests/sessions.py +++ b/requests/sessions.py @@ -157,6 +157,9 @@ class Session(object): args[attr] = merge_kwargs(local_val, session_val) + # Arguments manipulation hook. + args = dispatch_hook('args', hooks, args) + r = Request(**args) # Don't send if asked nicely. @@ -166,6 +169,7 @@ class Session(object): # Send the HTTP Request. r.send() + return r.response