]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Update client.py
authorTom Christie <tom@tomchristie.com>
Wed, 27 Nov 2019 14:35:37 +0000 (14:35 +0000)
committerGitHub <noreply@github.com>
Wed, 27 Nov 2019 14:35:37 +0000 (14:35 +0000)
httpx/client.py

index 7d3034323d12830ebdb1f501116b3a348edc50cf..cdcbc51f8e6c42ef5e4fd15667d9a1203e8cf327 100644 (file)
@@ -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]