From 0d414e29ec34f2cccfa9b0806d5d1c9c2da950e7 Mon Sep 17 00:00:00 2001 From: Abdelhak <48460845+protostar0@users.noreply.github.com> Date: Mon, 10 Feb 2025 17:27:56 +0400 Subject: [PATCH] add new cookies attributes sameparty and priority --- Lib/http/cookies.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/http/cookies.py b/Lib/http/cookies.py index 2c1f021d0abede..31be8f0365c372 100644 --- a/Lib/http/cookies.py +++ b/Lib/http/cookies.py @@ -264,9 +264,11 @@ class Morsel(dict): "httponly" : "HttpOnly", "version" : "Version", "samesite" : "SameSite", + "sameparty": "SameParty", + "priority": "Priority", } - _flags = {'secure', 'httponly'} + _flags = {'secure', 'httponly', 'sameparty'} def __init__(self): # Set defaults