[Python-checkins] Update client.py (GH-24827)

orsenthil webhook-mailer at python.org
Sat Mar 13 07:22:19 EST 2021


https://github.com/python/cpython/commit/b6884ad2688451dd3cbc5984b23da5840e1b6df8
commit: b6884ad2688451dd3cbc5984b23da5840e1b6df8
branch: master
author: Géry Ogam <gery.ogam at gmail.com>
committer: orsenthil <skumaran at gatech.edu>
date: 2021-03-13T04:22:03-08:00
summary:

Update client.py (GH-24827)

files:
M Lib/http/client.py

diff --git a/Lib/http/client.py b/Lib/http/client.py
index b339f20fc957a..c526380dcabfc 100644
--- a/Lib/http/client.py
+++ b/Lib/http/client.py
@@ -349,9 +349,6 @@ def begin(self):
         # 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)



More information about the Python-checkins mailing list