-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix cookies with duplicate names being lost when updating cookie jar #11106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
2f31966
wip
bdraco 4704226
fix cookies
bdraco b0d2285
fix test
bdraco 511526e
fix test
bdraco 3c38c19
cleanup
bdraco 275a393
fix test
bdraco 044e40b
compat
bdraco 183e3df
changes
bdraco daad218
changes
bdraco f4ecc6b
changes
bdraco 13e8d82
fixes
bdraco 12ad167
fixes
bdraco 740e2a6
preen
bdraco fdb97e0
preen
bdraco 5237886
mop up
bdraco b447673
mop up
bdraco 031722b
mop up
bdraco 35c110f
mop up
bdraco bcefda0
cleanup
bdraco a2d7519
should not be mutable
bdraco 5ab6cd4
should not be mutable
bdraco e6227b2
should not be mutable
bdraco b90bf88
should not be mutable
bdraco ff0bc00
preserve
bdraco a9caf68
cookie cover
bdraco 27972fa
changelog
bdraco 4a1c4ec
lint
bdraco fef4c01
lint
bdraco 8ff42b8
proper mock
bdraco c9f469c
proper mock
bdraco 2b548ea
proper mock
bdraco 19f3bac
proper mock
bdraco f9ca7e4
rfc link
bdraco a6c5b70
changelog
bdraco 7bc4b59
Update tests/test_cookiejar.py
bdraco File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Fixed an issue where cookies with duplicate names but different domains or paths | ||
were lost when updating the cookie jar. The :class:`~aiohttp.ClientSession` | ||
cookie jar now correctly stores all cookies even if they have the same name but | ||
different domain or path, following the :rfc:`6265#section-5.3` storage model -- by :user:`bdraco`. | ||
|
||
Note that :attr:`ClientResponse.cookies <aiohttp.ClientResponse.cookies>` returns | ||
a :class:`~http.cookies.SimpleCookie` which uses the cookie name as a key, so | ||
only the last cookie with each name is accessible via this interface. All cookies | ||
can be accessed via :meth:`ClientResponse.headers.getall('Set-Cookie') | ||
<multidict.MultiDictProxy.getall>` if needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
11105.bugfix.rst |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
11105.bugfix.rst |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.