mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Py3: Find Content-Length header by bytes
This commit is contained in:
parent
f83433e674
commit
22a94f06e6
@ -209,7 +209,7 @@ class Response(_HTTPMessage):
|
||||
base.TokValueLiteral(i[1].decode()))
|
||||
)
|
||||
if not self.raw:
|
||||
if not get_header("Content-Length", self.headers):
|
||||
if not get_header(b"Content-Length", self.headers):
|
||||
if not self.body:
|
||||
length = 0
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user