Updated regex for special case for expires attr in patern for finding cookie if day of week is specified in deprecated format(rfc2616).

This commit is contained in:
Liubomyr Popil 2020-04-06 18:45:43 +03:00
parent 38aefc585f
commit da111da22b
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ _CookiePattern = re.compile(r"""
(?P<val> # 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'