Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7591d94 commit b6884adCopy full SHA for b6884ad
1 file changed
Lib/http/client.py
@@ -349,9 +349,6 @@ def begin(self):
349
# NOTE: RFC 2616, S4.4, #3 says we ignore this if tr_enc is "chunked"
350
self.length = None
351
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")
355
if length and not self.chunked:
356
try:
357
self.length = int(length)
0 commit comments