Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ed Summers · committed by Ed Summers · parent 7fbbdeb · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:docs/user/quickstart.rst+2 added-2 removed
314 unmodified lines
315The :class:`Response.history` list contains a list of the316:class:`Request` objects that were created in order to complete the request.317318If you're using GET, HEAD, or OPTIONS, you can disable redirection319handling with the ``disable_redirects`` parameter::319handling with the ``allow_redirects`` parameter::320321 >>> r = requests.get('http://github.com')321 >>> r = requests.get('http://github.com', allow_redirects=False)322 >>> r.status_code323 301324 >>> r.history325 []
44 unmodified lines