Skip to content

Commit

Permalink
Update client.py (pythonGH-24827)
Browse files Browse the repository at this point in the history
  • Loading branch information
geryogam authored Mar 13, 2021
1 parent 7591d94 commit b6884ad
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Lib/http/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b6884ad

Please sign in to comment.