summaryrefslogtreecommitdiffstats
path: root/Lib/http
diff options
context:
space:
mode:
authorGéry Ogam <gery.ogam@gmail.com>2021-03-13 12:22:03 (GMT)
committerGitHub <noreply@github.com>2021-03-13 12:22:03 (GMT)
commitb6884ad2688451dd3cbc5984b23da5840e1b6df8 (patch)
treef68e5f891109f33c717305250d37f26e6538bfdb /Lib/http
parent7591d9455eb37525c832da3d65e1a7b3e6dbf613 (diff)
downloadcpython-b6884ad2688451dd3cbc5984b23da5840e1b6df8.zip
cpython-b6884ad2688451dd3cbc5984b23da5840e1b6df8.tar.gz
cpython-b6884ad2688451dd3cbc5984b23da5840e1b6df8.tar.bz2
Update client.py (GH-24827)
Diffstat (limited to 'Lib/http')
-rw-r--r--Lib/http/client.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py
index b339f20..c526380 100644
--- a/Lib/http/client.py
+++ b/Lib/http/client.py
@@ -349,9 +349,6 @@ class HTTPResponse(io.BufferedIOBase):
# NOTE: RFC 2616, S4.4, #3 says we ignore this if tr_enc is "chunked"
self.length = None
length = self.headers.get("content-length")
-
- # are we using the chunked-style of transfer encoding?
- tr_enc = self.headers.get("transfer-encoding")
if length and not self.chunked:
try:
self.length = int(length)