Skip to content
Myr

fix cookies

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 42b0295 · Browse files · 1 file+6 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−5 removed

  • other:+6 added−5 removed

1 file+6 added−5 removed

modified:requests/sessions.py+6 added-5 removed
106 unmodified lines
107 if (resp.status_code == 303) and req.method != 'HEAD':108 method = 'GET'109110 # Remove the cookie headers that were sent.111 # headers = req.headers112 # try:113 # del headers['Cookie']114 # except KeyError:115 # pass111 headers = req.headers112 try:113 del headers['Cookie']114 except KeyError:115 pass116117 resp = self.request(118 url=url,119 method=method,120 headers=headers,121 params=req.params,122 auth=req.auth,123 cookies=req.cookies,124 allow_redirects=False,
220 unmodified lines