[Python-checkins] Update client.py (GH-24827)
miss-islington
webhook-mailer at python.org
Sat Mar 13 08:09:07 EST 2021
https://github.com/python/cpython/commit/9f935fabab36ec1a94f7dab828f5bb48300994d2
commit: 9f935fabab36ec1a94f7dab828f5bb48300994d2
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-03-13T05:09:03-08:00
summary:
Update client.py (GH-24827)
(cherry picked from commit b6884ad2688451dd3cbc5984b23da5840e1b6df8)
Co-authored-by: Géry Ogam <gery.ogam at gmail.com>
files:
M Lib/http/client.py
diff --git a/Lib/http/client.py b/Lib/http/client.py
index 16afc871ea6d7..20a25de855625 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