Skip to content
Myr

Fixed finally. Also requires updated httpbin.org

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

authored by Ian Cordasco · committed by Ian Cordasco · parent c25a72e · Browse files · 2 files+5 added−1 removed
This commit

State

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

Diff stats

2 files+5 added−1 removed

  • other:+5 added−1 removed

2 files+5 added−1 removed

modified:requests/sessions.py+4 added
447 unmodified lines
448 # Response manipulation hooks449 r = dispatch_hook('response', hooks, r, **kwargs)450451 # Persist cookies452 if r.history:453 # If the hooks create history then we want those cookies too454 for resp in r.history:455 extract_cookies_to_jar(self.cookies, resp.request, resp.raw)456 extract_cookies_to_jar(self.cookies, request, r.raw)457458 # Redirect resolving generator.459 gen = self.resolve_redirects(r, request, stream=stream,
52 unmodified lines
modified:test_requests.py+1 added-1 removed
283 unmodified lines
284 r = requests.get(url)285 self.assertEqual(r.status_code, 401)286287 s = requests.session()288 s.auth = auth288 s.auth = HTTPDigestAuth('user', 'pass')289 r = s.get(url)290 self.assertEqual(r.status_code, 200)291292 def test_DIGEST_AUTH_RETURNS_COOKIE(self):
513 unmodified lines