diff options
author | Géry Ogam <gery.ogam@gmail.com> | 2021-03-13 12:22:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-13 12:22:03 (GMT) |
commit | b6884ad2688451dd3cbc5984b23da5840e1b6df8 (patch) | |
tree | f68e5f891109f33c717305250d37f26e6538bfdb /Lib | |
parent | 7591d9455eb37525c832da3d65e1a7b3e6dbf613 (diff) | |
download | cpython-b6884ad2688451dd3cbc5984b23da5840e1b6df8.zip cpython-b6884ad2688451dd3cbc5984b23da5840e1b6df8.tar.gz cpython-b6884ad2688451dd3cbc5984b23da5840e1b6df8.tar.bz2 |
Update client.py (GH-24827)
Diffstat (limited to 'Lib')
-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 b339f20..c526380 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) |