From 56d6d703f9c3ef0dbe09d0bac205e7c222481b87 Mon Sep 17 00:00:00 2001 From: Ed Summers Date: Tue, 6 Dec 2011 21:36:32 -0500 Subject: [PATCH] disable_redirects parameter does not seem to exist anymore, updated docs to point folks at allow_redirects --- docs/user/quickstart.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user/quickstart.rst b/docs/user/quickstart.rst index bcae48e..c9d9d53 100644 --- a/docs/user/quickstart.rst +++ b/docs/user/quickstart.rst @@ -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 -- 2.34.1