Patch #1117454: Remove code to special-case cookies without values

in LWPCookieJar. Backported to 2.4.
This commit is contained in:
Martin v. Löwis 2005-03-03 10:57:37 +00:00
parent 4ea3eade51
commit c5574e809b
5 changed files with 26 additions and 12 deletions

View file

@ -73,6 +73,9 @@ class MozillaCookieJar(FileCookieJar):
secure = (secure == "TRUE")
domain_specified = (domain_specified == "TRUE")
if name == "":
# cookies.txt regards 'Set-Cookie: foo' as a cookie
# with no name, whereas cookielib regards it as a
# cookie with no value.
name = value
value = None