From a632d00a1cbb6f4f8978cb45dd9789658cceb7c8 Mon Sep 17 00:00:00 2001 From: remitamine Date: Fri, 19 May 2017 14:28:35 +0200 Subject: [PATCH] Remove duplicate line in Lib/http/client.py (#1665) --- Lib/http/client.py | 1 - 1 file changed, 1 deletion(-) 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