default to true for redirects now, since safe
authorKenneth Reitz <me@kennethreitz.com>
Sat, 31 Mar 2012 03:42:04 +0000 (23:42 -0400)
committerKenneth Reitz <me@kennethreitz.com>
Sat, 31 Mar 2012 03:42:04 +0000 (23:42 -0400)
requests/sessions.py

index 0aeeef1e41686a74b1ad42867a1b1ac7ee54a91e..94c94bf95d430399d0c7d746b2b1eddbe6c2f021 100644 (file)
@@ -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.