Skip to content

Commit 96c8e3e

Browse files
[PR #8953/51ea3b39 backport][3.10] Add clarification about auth parameter in ClientSession (#8954)
**This is a backport of PR #8953 as merged into master (51ea3b3).** Co-authored-by: Maxim Zemskov <m.zemskov1@gmail.com>
1 parent a40dbad commit 96c8e3e

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGES/6764.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clarified that auth parameter in ClientSession will persist and be included with any request to any origin, even during redirects to different origins. -- by :user:`MaximZemskov`.

docs/client_reference.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ The client session supports the context manager protocol for self closing.
9999
Iterable of :class:`str` or :class:`~multidict.istr` (optional)
100100

101101
:param aiohttp.BasicAuth auth: an object that represents HTTP Basic
102-
Authorization (optional)
102+
Authorization (optional). It will be included
103+
with any request to any origin and will not be
104+
removed, event during redirect to a different
105+
origin.
103106

104107
:param version: supported HTTP version, ``HTTP 1.1`` by default.
105108

0 commit comments

Comments
 (0)