diff --git a/Lib/http/client.py b/Lib/http/client.py index 0f660710a72407..bbb3152dca5a54 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -371,7 +371,6 @@ def _check_close(self): 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