From da111da22bedd6390e9c497e6b9a64696b6b0351 Mon Sep 17 00:00:00 2001 From: Liubomyr Popil Date: Mon, 6 Apr 2020 18:45:43 +0300 Subject: [PATCH] Updated regex for special case for expires attr in patern for finding cookie if day of week is specified in deprecated format(rfc2616). --- Lib/http/cookies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/http/cookies.py b/Lib/http/cookies.py index 6694f5478bdadfb..ab5531cc4394105 100644 --- a/Lib/http/cookies.py +++ b/Lib/http/cookies.py @@ -441,7 +441,7 @@ def OutputString(self, attrs=None): (?P # Start of group 'val' "(?:[^\\"]|\\.)*" # Any doublequoted string | # or - \w{3},\s[\w\d\s-]{9,11}\s[\d:]{8}\sGMT # Special case for "expires" attr + \w{3,9},\s[\w\d\s-]{9,11}\s[\d:]{8}\sGMT # Special case for "expires" attr | # or [""" + _LegalValueChars + r"""]* # Any word or empty string ) # End of group 'val'