aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol/http.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-03-22 13:33:11 +1300
committerAldo Cortesi <aldo@nullcube.com>2015-03-22 13:33:11 +1300
commit3bf4feb213adf2b9829cd5452ca365e4be7ca10c (patch)
tree572463b2e5223499a977c4da2e3ce8118d373943 /libmproxy/protocol/http.py
parent89383e9c138f68caf1cc394174250c133d21aa04 (diff)
parent89d66360d6f7caa9760fe56fa146396b1b4251dc (diff)
downloadmitmproxy-3bf4feb213adf2b9829cd5452ca365e4be7ca10c.tar.gz
mitmproxy-3bf4feb213adf2b9829cd5452ca365e4be7ca10c.tar.bz2
mitmproxy-3bf4feb213adf2b9829cd5452ca365e4be7ca10c.zip
Merge branch 'master' of ssh.github.com:mitmproxy/mitmproxy
Diffstat (limited to 'libmproxy/protocol/http.py')
-rw-r--r--libmproxy/protocol/http.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py
index 49310ec3..00086c21 100644
--- a/libmproxy/protocol/http.py
+++ b/libmproxy/protocol/http.py
@@ -119,6 +119,8 @@ class HTTPMessage(stateobject.StateObject):
if short:
if self.content:
ret["contentLength"] = len(self.content)
+ elif self.content == CONTENT_MISSING:
+ ret["contentLength"] = None
else:
ret["contentLength"] = 0
return ret