-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix cookie parsing issues #11112
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
Fix cookie parsing issues #11112
Changes from 62 commits
Commits
Show all changes
112 commits
Select commit
Hold shift + click to select a range
57dfafb
cookie parser
bdraco 13bed23
cookie parser
bdraco a0918d8
tweaks
bdraco 53cafe0
tweaks
bdraco 86f3da1
tweaks
bdraco ee37df4
fixes
bdraco 0f92c56
cleanup
bdraco b448ca8
cleanup
bdraco eb9e0cb
simpler
bdraco e3444bb
simpler
bdraco aaacbcc
simpler
bdraco d39dee5
simpler
bdraco 96c1a96
simpler
bdraco 88fae3e
simpler
bdraco e1648ca
simpler
bdraco 8c09fe8
simpler
bdraco 8c6736e
simpler
bdraco 3d6ed97
simpler
bdraco b14f6c9
simpler
bdraco 61fcdd6
simpler
bdraco 36a19e0
simpler
bdraco 38ff925
simpler
bdraco 4514d1e
simpler
bdraco 809679a
simpler
bdraco 1dec309
simpler
bdraco 908a4a7
simpler
bdraco 3f29be2
simpler
bdraco b600fec
simpler
bdraco 304ef1d
simpler
bdraco a665421
vendor it
bdraco e74f2c5
vendor it
bdraco dd4b2f6
vendor it
bdraco 4c92a7a
vendor it
bdraco 9eb3bbf
vendor it
bdraco 21f478c
vendor it
bdraco d0f4e13
preen
bdraco 87f3ecd
preen
bdraco 3a0e77f
preen
bdraco 3477c01
preen
bdraco 9c5638d
preen
bdraco b430a85
fixes
bdraco 00c4f68
cleanup
bdraco aa2fc47
combine
bdraco d3d990d
tweaks
bdraco 38a35f5
reduce
bdraco 992f4c3
cover
bdraco de6293c
clean
bdraco 62995f8
clean
bdraco 3fdf0cc
preen
bdraco 922494a
preen
bdraco 84e9d87
fix both sides
bdraco ba32386
cover
bdraco 346570c
cover
bdraco 0b5eb3d
mypy
bdraco 101eaf3
mypy
bdraco 479e3d5
mypy
bdraco d0bb035
mypy
bdraco 0dff6d5
changelog
bdraco 1a6a6ec
add coverage for dollar
bdraco 0eee175
make sure to handle case insen
bdraco 8bc198e
cleanups
bdraco d6957aa
reduce
bdraco a1229ef
fix test
bdraco 5150a57
split it
bdraco 1757b37
make it pass
bdraco 266de20
Revert "make it pass"
bdraco 5af5c0b
Revert "split it"
bdraco d457096
preen
bdraco b310cf9
document
bdraco 00f12ca
cover the remaining lines
bdraco 0f5447f
refactor tests
bdraco 6ca1617
cleanup
bdraco 9719a9b
use it in all places
bdraco 12a950a
preen
bdraco 5a7cb94
preen
bdraco 54047eb
fix
bdraco 4ff3982
type
bdraco 85da85c
type
bdraco 759e3e4
Merge branch 'master' into cookie_fix
bdraco 2021828
tests for shared cookie
bdraco 1061413
fix
bdraco b47e93b
__all__
bdraco 9855794
relo
bdraco 0761fb3
relo
bdraco c789580
relo
bdraco e82881d
relo
bdraco 361897f
relo
bdraco ee932e9
revert test change
bdraco edff948
restore tests
bdraco 0777719
migrate
bdraco 743e0d5
migrate
bdraco 49912cc
preen
bdraco b7c7422
Update tests/test_client_session.py
bdraco 08bd536
lint
bdraco 1f3ece8
one more fix
bdraco ed95a15
missed one
bdraco 61bc5a3
missed one
bdraco c27d813
more fixes
bdraco 6a14098
preen
bdraco c7fc002
avoid patching
bdraco 4030ec8
preen
bdraco f8e501d
fix perf regression
bdraco 675c1f3
use pickle api as it should be more stable than setting protected met…
bdraco 049c149
comments
bdraco 7efa55c
simplify
bdraco 34216a8
cover
bdraco 1317e8c
remove dupes
bdraco b39445e
remove dupes
bdraco 29ce89b
remove dupes
bdraco 745fca1
fix issue #4327
bdraco 0acf73c
fix #4493
bdraco 6e80350
preen
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,6 @@ | ||
Fixed cookie parsing to be more lenient when handling cookies with special characters | ||
in names or values. Cookies with characters like ``{``, ``}``, and ``/`` in names are now | ||
accepted instead of causing a :exc:`~http.cookies.CookieError` and 500 errors. Additionally, | ||
cookies with mismatched quotes in values are now parsed correctly, and quoted cookie | ||
values are now handled consistently whether or not they include special attributes | ||
like ``Domain`` -- by :user:`bdraco`. |
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 @@ | ||
11112.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 @@ | ||
11112.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 @@ | ||
11112.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.