disable_redirects parameter does not seem to exist anymore, updated docs to point folks at allow_redirects

This commit is contained in:
Ed Summers
2011-12-06 21:36:32 -05:00
parent 7fbbdeb324
commit 56d6d703f9
+2 -2
View File
@@ -316,9 +316,9 @@ The :class:`Response.history` list contains a list of the
:class:`Request` objects that were created in order to complete the request.
If you're using GET, HEAD, or OPTIONS, you can disable redirection
handling with the ``disable_redirects`` parameter::
handling with the ``allow_redirects`` parameter::
>>> r = requests.get('http://github.com')
>>> r = requests.get('http://github.com', allow_redirects=False)
>>> r.status_code
301
>>> r.history