disable_redirects parameter does not seem to exist anymore, updated docs to point...
authorEd Summers <ehs@pobox.com>
Wed, 7 Dec 2011 02:36:32 +0000 (21:36 -0500)
committerEd Summers <ehs@pobox.com>
Wed, 7 Dec 2011 02:36:32 +0000 (21:36 -0500)
docs/user/quickstart.rst

index bcae48e..c9d9d53 100644 (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