mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Patch for issue 2848, mostly by Humberto Diogenes, with a couple of
small fixes by Barry. This removes mimetools from the stdlib.
This commit is contained in:
parent
75f25f2c9a
commit
820c120059
23 changed files with 146 additions and 202 deletions
|
@ -1547,8 +1547,8 @@ class CookieJar:
|
|||
"""Return sequence of Cookie objects extracted from response object."""
|
||||
# get cookie-attributes for RFC 2965 and Netscape protocols
|
||||
headers = response.info()
|
||||
rfc2965_hdrs = headers.getheaders("Set-Cookie2")
|
||||
ns_hdrs = headers.getheaders("Set-Cookie")
|
||||
rfc2965_hdrs = headers.get_all("Set-Cookie2", [])
|
||||
ns_hdrs = headers.get_all("Set-Cookie", [])
|
||||
|
||||
rfc2965 = self._policy.rfc2965
|
||||
netscape = self._policy.netscape
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue