diff options
author | Shadab Zafar <dufferzafar0@gmail.com> | 2016-06-08 16:28:39 +0530 |
---|---|---|
committer | Shadab Zafar <dufferzafar0@gmail.com> | 2016-06-08 16:28:39 +0530 |
commit | 70216673a1411a17b29899ed1807008ef5867948 (patch) | |
tree | 10174d9c32e22fc12770fe045f91c37c8f38541e | |
parent | e187358e97f93ca8a1b3df4761a1edca5c4f5e59 (diff) | |
download | mitmproxy-70216673a1411a17b29899ed1807008ef5867948.tar.gz mitmproxy-70216673a1411a17b29899ed1807008ef5867948.tar.bz2 mitmproxy-70216673a1411a17b29899ed1807008ef5867948.zip |
Py3: Find content-length header by bytes
-rw-r--r-- | pathod/language/http2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pathod/language/http2.py b/pathod/language/http2.py index e83fe9ad..4d2ae198 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: |