From 99ee84e20d2a48df3f0980bad42c04c5c7d36951 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 27 Nov 2019 14:35:37 +0000 Subject: [PATCH] Update client.py --- httpx/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]