diff options
author | Géry Ogam <gery.ogam@gmail.com> | 2021-03-13 13:22:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-13 04:22:03 -0800 |
commit | b6884ad2688451dd3cbc5984b23da5840e1b6df8 (patch) | |
tree | f68e5f891109f33c717305250d37f26e6538bfdb /Lib/http/client.py | |
parent | 7591d9455eb37525c832da3d65e1a7b3e6dbf613 (diff) | |
download | cpython-git-b6884ad2688451dd3cbc5984b23da5840e1b6df8.tar.gz |
Update client.py (GH-24827)
Diffstat (limited to 'Lib/http/client.py')
-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 b339f20fc9..c526380dca 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) |