diff options
-rw-r--r-- | mitmproxy/web/app.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mitmproxy/web/app.py b/mitmproxy/web/app.py index 8a8329e7..cf3c8bdd 100644 --- a/mitmproxy/web/app.py +++ b/mitmproxy/web/app.py @@ -25,10 +25,8 @@ def _strip_content(flow_state): continue if message["content"]: message["contentLength"] = len(message["content"]) - elif message["content"] is None: - message["contentLength"] = None else: - message["contentLength"] = 0 + message["contentLength"] = None del message["content"] if "backup" in flow_state: |