Add argument injection hook back
authorKenneth Reitz <me@kennethreitz.com>
Sun, 23 Oct 2011 18:47:15 +0000 (14:47 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Sun, 23 Oct 2011 18:47:15 +0000 (14:47 -0400)
requests/sessions.py

index f1124ae..9c7f32c 100644 (file)
@@ -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