From 3f873dc22271625c21cc85fe8d1186aa1dd465a0 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 17 Aug 2011 04:05:20 -0400 Subject: [PATCH] hooks in api layer only --- requests/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests/api.py b/requests/api.py index 13dc4eaf..0cea63d4 100644 --- a/requests/api.py +++ b/requests/api.py @@ -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)