mirror of
https://github.com/httpie/cli.git
synced 2025-01-24 06:19:12 +01:00
Cleanup.
This commit is contained in:
parent
316e3f45a9
commit
66bdbc3745
@ -52,7 +52,8 @@ def get_response(name, request_kwargs, read_only=False):
|
||||
except Exception:
|
||||
raise
|
||||
else:
|
||||
if not read_only or session.is_new:
|
||||
# Existing sessions with `read_only=True` don't get updated.
|
||||
if session.is_new or not read_only:
|
||||
session.cookies = rsession.cookies
|
||||
session.save()
|
||||
return response
|
||||
|
Loading…
Reference in New Issue
Block a user