diff --git a/Lib/http/client.py b/Lib/http/client.py index 0f660710a72..bbb3152dca5 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -371,7 +371,6 @@ class HTTPResponse(io.BufferedIOBase): if self.version == 11: # An HTTP/1.1 proxy is assumed to stay open unless # explicitly closed. - conn = self.headers.get("connection") if conn and "close" in conn.lower(): return True return False