From: Ed Summers Date: Wed, 7 Dec 2011 02:36:32 +0000 (-0500) Subject: disable_redirects parameter does not seem to exist anymore, updated docs to point... X-Git-Tag: v0.8.4~5^2~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56d6d703f9c3ef0dbe09d0bac205e7c222481b87;p=services%2Fpython-requests.git disable_redirects parameter does not seem to exist anymore, updated docs to point folks at allow_redirects --- 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