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:
parent
38aefc585f
commit
da111da22b
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue