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

@ -451,11 +451,7 @@ def parse_ns_headers(ns_headers):
param = param.rstrip()
if param == "": continue
if "=" not in param:
if param.lower() in known_attrs:
k, v = param, None
else:
# cookie with missing value
k, v = param, None
k, v = param, None
else:
k, v = re.split(r"\s*=\s*", param, 1)
k = k.lstrip()