From 70216673a1411a17b29899ed1807008ef5867948 Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Wed, 8 Jun 2016 16:28:39 +0530 Subject: [PATCH] Py3: Find content-length header by bytes --- pathod/language/http2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pathod/language/http2.py b/pathod/language/http2.py index e83fe9ad8..4d2ae1984 100644 --- a/pathod/language/http2.py +++ b/pathod/language/http2.py @@ -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: