Py3: Find content-length header by bytes

This commit is contained in:
Shadab Zafar 2016-06-08 16:28:39 +05:30
parent e187358e97
commit 70216673a1

View File

@ -60,7 +60,7 @@ class _HTTP2Message(message.Message):
headers = self.toks(_HeaderMixin) headers = self.toks(_HeaderMixin)
if not self.raw: if not self.raw:
if not get_header("content-length", headers): if not get_header(b"content-length", headers):
if not self.body: if not self.body:
length = 0 length = 0
else: else: