Permalink
Browse files

Requests 1.0: session cookies.

  • Loading branch information...
1 parent 675a8b1 commit 1766dd8291c189eb48eaed48b8d0bfe1f8811166 @jkbrzt committed Dec 17, 2012
Showing with 2 additions and 3 deletions.
  1. +0 −1 httpie/client.py
  2. +2 −2 httpie/sessions.py
View
1 httpie/client.py
@@ -4,7 +4,6 @@
import requests
import requests.auth
-from requests.utils import default_headers
from . import sessions
from . import __version__
View
4 httpie/sessions.py
@@ -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:

0 comments on commit 1766dd8

Please sign in to comment.