summaryrefslogtreecommitdiffstats
path: root/Lib/_MozillaCookieJar.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2005-03-03 10:57:37 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2005-03-03 10:57:37 (GMT)
commitc5574e809b18d517f81e93542db76642662823cd (patch)
tree646ebdff3431d8d25202c959c4ac47b0cb4f4e08 /Lib/_MozillaCookieJar.py
parent4ea3eade518c6a48b0708736442deefe669fe287 (diff)
downloadcpython-c5574e809b18d517f81e93542db76642662823cd.zip
cpython-c5574e809b18d517f81e93542db76642662823cd.tar.gz
cpython-c5574e809b18d517f81e93542db76642662823cd.tar.bz2
Patch #1117454: Remove code to special-case cookies without values
in LWPCookieJar. Backported to 2.4.
Diffstat (limited to 'Lib/_MozillaCookieJar.py')
-rw-r--r--Lib/_MozillaCookieJar.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/_MozillaCookieJar.py b/Lib/_MozillaCookieJar.py
index 0e08c09..88e8492 100644
--- a/Lib/_MozillaCookieJar.py
+++ b/Lib/_MozillaCookieJar.py
@@ -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