Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KamilSzot committed Apr 2, 2013
1 parent 20a8a9b commit ca0aea6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion requests/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ def request(self, method, url,
hooks=None,
stream=None,
verify=None,
cert=None):
cert=None,
return_response=True):
"""Constructs a :class:`Request <Request>`, prepares it and sends it.
Returns :class:`Response <Response>` object.
Expand Down Expand Up @@ -339,6 +340,9 @@ def request(self, method, url,
req.cookies = cookies
req.hooks = hooks

if not return_response:
return req

# Prepare the Request.
prep = req.prepare()

Expand Down

0 comments on commit ca0aea6

Please sign in to comment.