diff options
author | Shadab Zafar <dufferzafar0@gmail.com> | 2016-06-09 22:22:07 +0530 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-06-15 09:49:38 +0200 |
commit | 22a94f06e65c13f25794337a363e3176eab37a71 (patch) | |
tree | 9fd64ac9ce5759031c552dfa7c36e89db5fc17b5 | |
parent | f83433e67466397a78a37fde3607edf2dac42d5b (diff) | |
download | mitmproxy-22a94f06e65c13f25794337a363e3176eab37a71.tar.gz mitmproxy-22a94f06e65c13f25794337a363e3176eab37a71.tar.bz2 mitmproxy-22a94f06e65c13f25794337a363e3176eab37a71.zip |
Py3: Find Content-Length header by bytes
-rw-r--r-- | pathod/language/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pathod/language/http.py b/pathod/language/http.py index 4cc7db5f..5bd6e385 100644 --- a/pathod/language/http.py +++ b/pathod/language/http.py @@ -209,7 +209,7 @@ class Response(_HTTPMessage): base.TokValueLiteral(i[1].decode())) ) if not self.raw: - if not get_header("Content-Length", self.headers): + if not get_header(b"Content-Length", self.headers): if not self.body: length = 0 else: |