bpo-35824: Update http.cookies._CookiePattern by MeiK2333 · Pull Request #11665 · python/cpython

Modified a regular expression to correctly parse Expires in Cookies

http.cookies.BaseCookie can't parse Expires in this format like Expires=Thu,31 Jan 2019 05:56:00 GMT;(Less space after Thu,).

I encountered this problem in actual use, Chrome, IE and Firefox can parse this string normally. Many languages, such as JavaScript, can also parse this data automatically.

I looked for mdn, and the examples they gave were spaces, but didn't do more.

I don't know the specification of pr and whether this pr is necessary. If it doesn't make sense, please close it.

English is not my native language; please excuse typing errors.

https://bugs.python.org/issue35824