Remove duplicate line in Lib/http/client.py (#1665)
This commit is contained in:
parent
c7b3f0fc3b
commit
a632d00a1c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue