From: Kenneth Reitz Date: Sat, 31 Mar 2012 03:42:04 +0000 (-0400) Subject: default to true for redirects now, since safe X-Git-Tag: v0.11.1~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dacc1d8aafedf80f8736d794005b6c8e8b1d4ad1;p=services%2Fpython-requests.git default to true for redirects now, since safe --- diff --git a/requests/sessions.py b/requests/sessions.py index 0aeeef1..94c94bf 100644 --- a/requests/sessions.py +++ b/requests/sessions.py @@ -115,7 +115,7 @@ class Session(object): files=None, auth=None, timeout=None, - allow_redirects=False, + allow_redirects=True, proxies=None, hooks=None, return_response=True, @@ -136,7 +136,7 @@ class Session(object): :param files: (optional) Dictionary of 'filename': file-like-objects for multipart encoding upload. :param auth: (optional) Auth tuple to enable Basic/Digest/Custom HTTP Auth. :param timeout: (optional) Float describing the timeout of the request. - :param allow_redirects: (optional) Boolean. Set to True if POST/PUT/DELETE redirect following is allowed. + :param allow_redirects: (optional) Boolean. Set to True by default. :param proxies: (optional) Dictionary mapping protocol to the URL of the proxy. :param return_response: (optional) If False, an un-sent Request object will returned. :param config: (optional) A configuration dictionary.