This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: cookielib and cookies with special names
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: jjlee, loewis
Priority: normal Keywords: patch

Created on 2005-02-06 15:30 by jjlee, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
special_attrs.patch jjlee, 2005-02-06 15:30
Messages (2)
msg47688 - (view) Author: John J Lee (jjlee) Date: 2005-02-06 15:30
cookielib's Netscape cookies parser,
parse_ns_headers(), treats Netscape cookies whose names
happen to match one of the special cookie-attribute
names as if they were a cookie-attribute rather than a
cookie name=value pair.

Eg. Set-Cookie: expires="foo"

Here, expires is the cookie name, not a special expires
cookie-attribute.

The patch includes two new tests, a patch to
cookielib.py and a fix to an existing test.
msg47689 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2005-03-03 10:48
Logged In: YES 
user_id=21627

Thanks for the patch. Applied as

cookielib.py 1.4.2.2
test_cookielib.py 1.1.4.1
NEWS 1.1193.2.26
cookielib.py 1.8
test_cookielib.py 1.2
NEWS 1.1254
History
Date User Action Args
2022-04-11 14:56:09adminsetgithub: 41533
2005-02-06 15:30:31jjleecreate