From 68b48309480db3a95372967fe9c005d612c91ea0 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 23 Oct 2011 14:47:15 -0400 Subject: [PATCH] Add argument injection hook back --- requests/sessions.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.7.4