mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
Py3: Find content-length header by bytes
This commit is contained in:
parent
e187358e97
commit
70216673a1
@ -60,7 +60,7 @@ class _HTTP2Message(message.Message):
|
||||
headers = self.toks(_HeaderMixin)
|
||||
|
||||
if not self.raw:
|
||||
if not get_header("content-length", headers):
|
||||
if not get_header(b"content-length", headers):
|
||||
if not self.body:
|
||||
length = 0
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user