Merge pull request #300 from edsu/develop

disable_redirects should be allow_redirects in docs
This commit is contained in:
Kenneth Reitz
2011-12-06 18:38:31 -08:00
+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