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]