mirror of
https://github.com/httpie/cli.git
synced 2025-02-18 02:20:51 +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
|
# http://docs.python.org/2/library/cookielib.html#cookie-objects
|
||||||
stored_attrs = ['value', 'path', 'secure', 'expires']
|
stored_attrs = ['value', 'path', 'secure', 'expires']
|
||||||
self['cookies'] = {}
|
self['cookies'] = {}
|
||||||
for host in jar._cookies.values():
|
for cookie in jar:
|
||||||
for path in host.values():
|
self['cookies'][cookie.name] = dict(
|
||||||
for name, cookie in path.items():
|
|
||||||
self['cookies'][name] = dict(
|
|
||||||
(attname, getattr(cookie, attname))
|
(attname, getattr(cookie, attname))
|
||||||
for attname in stored_attrs
|
for attname in stored_attrs
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user