New submission from Alberto Moral <[email protected]>:
http.cookiejar (cookielib, for python2.*) does not parse some cookies' expire
date. For example: "Friday, 1-August-1997 00:00:00 GMT" (while: "Fri, 01 Aug
1997 00:00:00 GMT" works fine)
This is basically due to long names of months (it is compared with
MONTHS_LOWER: list of 3-letter months). So, I propose a small change in the
definition of re LOOSE_HTTP_DATE_RE:
LOOSE_HTTP_DATE_RE = re.compile(
r"""^
(\d\d?) # day
(?:\s+|[-\/])
(\w{3})\w* # month (3 first letters only)
...
Instead of:
LOOSE_HTTP_DATE_RE = re.compile(
r"""^
(\d\d?) # day
(?:\s+|[-\/])
(\w+) # month
...
I've tested only http.cookiejar (python 3.6), but I suposse the same change
will work on cookielib
Thanks in advance
PD. This is a SECOND VERSION of this issue (I've fixed and removed it). Sorry
_______________________________________________________
PSF Meta Tracker <[email protected]>
<http://psf.upfronthosting.co.za/roundup/meta/issue667>
_______________________________________________________
_______________________________________________
Tracker-discuss mailing list
[email protected]
https://mail.python.org/mailman/listinfo/tracker-discuss
Code of Conduct: https://www.python.org/psf/codeofconduct/