From f9dfbb73ddbc6ce78cd6e57dd436158fc417d031 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 22 Oct 2011 20:28:19 -0400 Subject: [PATCH] requests.request uses config --- requests/api.py | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/requests/api.py b/requests/api.py index f44f35b..c055644 100644 --- a/requests/api.py +++ b/requests/api.py @@ -17,13 +17,24 @@ __all__ = ('request', 'get', 'head', 'post', 'patch', 'put', 'delete') def request(method, url, - params=None, data=None, headers=None, cookies=None, files=None, auth=None, - timeout=None, allow_redirects=False, proxies=None, hooks=None, return_response=True): + params=None, + data=None, + headers=None, + cookies=None, + files=None, + auth=None, + timeout=None, + allow_redirects=False, + proxies=None, + hooks=None, + return_response=True, + config=None): s = session() return s.request( method, url, params, data, headers, cookies, files, auth, - timeout, allow_redirects, proxies, hooks, return_response + timeout, allow_redirects, proxies, hooks, return_response, + config ) -- 2.7.4