mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Remove duplicate line in Lib/http/client.py (#1665)
This commit is contained in:
parent
c7b3f0fc3b
commit
a632d00a1c
1 changed files with 0 additions and 1 deletions
|
@ -371,7 +371,6 @@ class HTTPResponse(io.BufferedIOBase):
|
||||||
if self.version == 11:
|
if self.version == 11:
|
||||||
# An HTTP/1.1 proxy is assumed to stay open unless
|
# An HTTP/1.1 proxy is assumed to stay open unless
|
||||||
# explicitly closed.
|
# explicitly closed.
|
||||||
conn = self.headers.get("connection")
|
|
||||||
if conn and "close" in conn.lower():
|
if conn and "close" in conn.lower():
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue