set 'allow_redirects' to True by default

the previous implementation of url_helper.readurl() would default
to allow_redirects being true.

So, for backwards compat, we should keep that behavior.
This commit is contained in:
Scott Moser 2013-03-19 10:05:51 -04:00
parent 89bc8a2dfc
commit 4ab16c490e

View File

@ -103,7 +103,7 @@ class UrlError(IOError):
def readurl(url, data=None, timeout=None, retries=0, sec_between=1,
headers=None, ssl_details=None, check_status=True,
allow_redirects=False):
allow_redirects=True):
url = _cleanurl(url)
req_args = {
'url': url,