mirror of
https://github.com/httpie/cli.git
synced 2025-01-24 06:19:12 +01:00
Requests 1.0: session cookies.
This commit is contained in:
parent
675a8b17ad
commit
1766dd8291
@ -4,7 +4,6 @@ from pprint import pformat
|
||||
|
||||
import requests
|
||||
import requests.auth
|
||||
from requests.utils import default_headers
|
||||
|
||||
from . import sessions
|
||||
from . import __version__
|
||||
|
@ -49,9 +49,9 @@ def get_response(name, request_kwargs, config_dir, read_only=False):
|
||||
elif session.auth:
|
||||
request_kwargs['auth'] = session.auth
|
||||
|
||||
rsession = requests.Session(cookies=session.cookies)
|
||||
rsession = requests.Session()
|
||||
try:
|
||||
response = rsession.request(**request_kwargs)
|
||||
response = rsession.request(cookies=session.cookies, **request_kwargs)
|
||||
except Exception:
|
||||
raise
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user