mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Add argument injection hook back
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user