8000 Update client.py (GH-24827) · python/cpython@9f935fa · GitHub
[go: up one dir, main page]

Skip to content

Commit 9f935fa

Browse files
Update client.py (GH-24827)
(cherry picked from commit b6884ad) Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
1 parent db2762c commit 9f935fa

File 8000 tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Lib/http/client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,9 +349,6 @@ def begin(self):
349349
# NOTE: RFC 2616, S4.4, #3 says we ignore this if tr_enc is "chunked"
350350
self.length = None
351351
length = self.headers.get("content-length")
352-
353-
# are we using the chunked-style of transfer encoding?
354-
tr_enc = self.headers.get("transfer-encoding")
355352
if length and not self.chunked:
356353
try:
357354
self.length = int(length)

0 commit comments

Comments
 (0)
0