From 86aff09103608fb5cbb11dbfbcf35e5e4927a5da Mon Sep 17 00:00:00 2001 From: Saimadhav Heblikar Date: Thu, 14 May 2015 11:42:07 +0530 Subject: [PATCH] Auth handler calls close instead of raw.close_conn --- requests/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests/auth.py b/requests/auth.py index 0ff9c298..03c3302a 100644 --- a/requests/auth.py +++ b/requests/auth.py @@ -179,7 +179,7 @@ class HTTPDigestAuth(AuthBase): # Consume content and release the original connection # to allow our new request to reuse the same one. r.content - r.raw.release_conn() + r.close() prep = r.request.copy() extract_cookies_to_jar(prep._cookies, r.request, r.raw) prep.prepare_cookies(prep._cookies)