gh-112713 : Add support for 'partitioned' attribute in http.cookies (GH-112714)

* Add support for 'partitioned' attribute in http.cookies

Co-authored-by: Giles Copp <gilesc@dropbox.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
This commit is contained in:
Giles Copp 2025-01-24 17:31:52 -05:00 committed by GitHub
parent 3a3a6b86f4
commit 9abbb58e3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 28 additions and 1 deletions

View file

@ -264,11 +264,12 @@ class Morsel(dict):
"httponly" : "HttpOnly",
"version" : "Version",
"samesite" : "SameSite",
"partitioned": "Partitioned",
}
_reserved_defaults = dict.fromkeys(_reserved, "")
_flags = {'secure', 'httponly'}
_flags = {'secure', 'httponly', 'partitioned'}
def __init__(self):
# Set defaults