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
1 changed files with 1 additions and 1 deletions

View File

@ -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: