hooks in api layer only

This commit is contained in:
Kenneth Reitz
2011-08-17 04:05:20 -04:00
parent e0ae2b4155
commit 3f873dc222
+1 -1
View File
@@ -63,7 +63,7 @@ def request(method, url,
# Arguments manipulation hook.
args = dispatch_hook('args', hooks, args)
r = Request(hooks=hooks, **args)
r = Request(**args)
# Pre-request hook.
r = dispatch_hook('pre_request', hooks, r)