mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Patch #1117454: Remove code to special-case cookies without values
in LWPCookieJar. Backported to 2.4.
This commit is contained in:
parent
4ea3eade51
commit
c5574e809b
5 changed files with 26 additions and 12 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue