summaryrefslogtreecommitdiffstats
path: root/Lib/http/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/http/client.py')
-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)