Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES/13658.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Documented that ``max_redirects=0`` means no limit and that ``allow_redirects=False`` disables redirects -- by :user:`monasco`.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ Mikhail Nacharov
Mingjie Zhao
Misha Behersky
Mitchell Ferree
monasco
Morgan Delahaye-Prat
Moss Collum
Mun Gwan-gyeong
Expand Down
4 changes: 4 additions & 0 deletions docs/client_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,8 @@ The client session supports the context manager protocol for self closing.

:param int max_redirects: Maximum number of redirects to follow.
:exc:`TooManyRedirects` is raised if the number is exceeded.
``0`` means no limit, redirects are followed until the request
times out. Use ``allow_redirects=False`` to not follow redirects at all.
Ignored when ``allow_redirects=False``.
``10`` by default.

Expand Down Expand Up @@ -970,6 +972,8 @@ certification chaining.

:param int max_redirects: Maximum number of redirects to follow.
:exc:`TooManyRedirects` is raised if the number is exceeded.
``0`` means no limit, redirects are followed until the request
times out. Use ``allow_redirects=False`` to not follow redirects at all.
Ignored when ``allow_redirects=False``.
``10`` by default.

Expand Down
Loading