mirror of
https://github.com/httpie/cli.git
synced 2024-11-25 01:03:27 +01:00
Fixed PyPy cookie updating issue
This commit is contained in:
parent
99f82bbd32
commit
631c54b711
@ -152,10 +152,8 @@ class Session(BaseConfigDict):
|
||||
# http://docs.python.org/2/library/cookielib.html#cookie-objects
|
||||
stored_attrs = ['value', 'path', 'secure', 'expires']
|
||||
self['cookies'] = {}
|
||||
for host in jar._cookies.values():
|
||||
for path in host.values():
|
||||
for name, cookie in path.items():
|
||||
self['cookies'][name] = dict(
|
||||
for cookie in jar:
|
||||
self['cookies'][cookie.name] = dict(
|
||||
(attname, getattr(cookie, attname))
|
||||
for attname in stored_attrs
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user