Skip to content

Commit

Permalink
Don't ascribe cookies to the target domain.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasa committed Mar 14, 2015
1 parent bc746e1 commit 3bd8afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requests/sessions.py
Expand Up @@ -171,7 +171,7 @@ def resolve_redirects(self, resp, req, stream=False, timeout=None,
except KeyError:
pass

extract_cookies_to_jar(prepared_request._cookies, prepared_request, resp.raw)
extract_cookies_to_jar(prepared_request._cookies, req, resp.raw)
prepared_request._cookies.update(self.cookies)
prepared_request.prepare_cookies(prepared_request._cookies)

Expand Down

0 comments on commit 3bd8afb

Please sign in to comment.