Skip to content
Myr

Merge pull request #300 from edsu/develop

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

disable_redirects should be allow_redirects in docs

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 7fbbdeb, 56d6d70 · 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