Skip to content

Commit

Permalink
ACTIVVVAATTTEEEEEEE
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth Reitz committed Aug 17, 2011
1 parent f7024a6 commit 66391e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions requests/api.py
Expand Up @@ -15,7 +15,9 @@
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')

Expand All @@ -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,
Expand Down

0 comments on commit 66391e5

Please sign in to comment.