diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-03-13 12:44:36 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-13 12:44:36 (GMT) |
commit | 53ab4af4444a01ef3848e49278a0b46c8f9e99cf (patch) | |
tree | f34139890516a461289963a76200eadb8c5fbcc0 | |
parent | 5c674e44798ba3235e7786b3cf3bc43a4d4e8102 (diff) | |
download | cpython-53ab4af4444a01ef3848e49278a0b46c8f9e99cf.zip cpython-53ab4af4444a01ef3848e49278a0b46c8f9e99cf.tar.gz cpython-53ab4af4444a01ef3848e49278a0b46c8f9e99cf.tar.bz2 |
Update client.py (GH-24827)
(cherry picked from commit b6884ad2688451dd3cbc5984b23da5840e1b6df8)
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
-rw-r--r-- | Lib/http/client.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py index a96fd5e..df417cf 100644 --- a/Lib/http/client.py +++ b/Lib/http/client.py @@ -349,9 +349,6 @@ class HTTPResponse(io.BufferedIOBase): # 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) |