[issue45610] Cookies with longer paths are listed before cookies with shorter paths.

IYism report at bugs.python.org
Mon Oct 25 22:29:21 EDT 2021


New submission from IYism <admin at iyism.com>:

E.g:
Set-Cookie: a=1; Domain=test.com;      Path=/
Set-Cookie: a=2; Domain=demo.test.com; Path=/

Browser send Cookie: a=2; a=1


According to the agreed specification, a=2 should be read first, not a=1

But the wrong behavior of python is that the cookie reads a=1 by default

----------
components: Library (Lib)
messages: 405020
nosy: FFY00, IYism
priority: normal
pull_requests: 27486
severity: normal
status: open
title: Cookies with longer paths are listed before cookies with shorter paths.
type: behavior
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45610>
_______________________________________


More information about the Python-bugs-list mailing list