diff options
-rw-r--r-- | libmproxy/web/app.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmproxy/web/app.py b/libmproxy/web/app.py index 2c45a1dc..5c479181 100644 --- a/libmproxy/web/app.py +++ b/libmproxy/web/app.py @@ -20,6 +20,8 @@ def _strip_content(flow_state): for attr in ("request", "response"): if attr in flow_state: message = flow_state[attr] + if message is None: + continue if message["content"]: message["contentLength"] = len(message["content"]) elif message["content"] == CONTENT_MISSING: |