From: Tom Christie Date: Wed, 27 Nov 2019 14:35:37 +0000 (+0000) Subject: Update client.py X-Git-Tag: 0.9.0~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99ee84e20d2a48df3f0980bad42c04c5c7d36951;p=thirdparty%2Fhttpx.git Update client.py --- diff --git a/httpx/client.py b/httpx/client.py index 7d303432..cdcbc51f 100644 --- a/httpx/client.py +++ b/httpx/client.py @@ -421,7 +421,7 @@ class Client: if not response.is_redirect: return response - await response.close() + await response.read() request = self.build_redirect_request(request, response) history = history + [response]