ACTIVVVAATTTEEEEEEE

This commit is contained in:
Kenneth Reitz
2011-08-17 02:01:19 -04:00
parent f7024a6000
commit 66391e5c9d
+7
View File
@@ -15,7 +15,9 @@ import config
from .models import Request, Response, AuthObject
from .status_codes import codes
from .hooks import dispatch_hook
from .utils import cookiejar_from_dict
from urlparse import urlparse
__all__ = ('request', 'get', 'head', 'post', 'patch', 'put', 'delete')
@@ -39,6 +41,11 @@ def request(method, url,
:param proxies: (optional) Dictionary mapping protocol to the URL of the proxy.
"""
if cookies is None:
cookies = {}
cookies = cookiejar_from_dict(cookies)
args = dict(
method = method,
url = url,