Skip to content
Myr

Add argument injection hook back

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 9966017 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:requests/sessions.py+4 added
155 unmodified lines
156 local_val = args.get(attr)157158 args[attr] = merge_kwargs(local_val, session_val)159160 # Arguments manipulation hook.161 args = dispatch_hook('args', hooks, args)162163 r = Request(**args)164165 # Don't send if asked nicely.166 if not return_response:
1 unmodified line
168169 # Send the HTTP Request.170 r.send()171172173 return r.response174175176 def get(self, url, **kwargs):
69 unmodified lines