mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue