mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Update client.py (GH-24827)
(cherry picked from commit b6884ad268
)
Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
This commit is contained in:
parent
5c674e4479
commit
53ab4af444
1 changed files with 0 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue