diff options
author | Matthew Shao <me@matshao.com> | 2016-03-27 09:16:40 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2016-03-27 09:16:40 +0800 |
commit | 6e4af64050fe9a0efbfa73193131065b96feca3c (patch) | |
tree | a2401f07785a30c8f9ca59c3011d9d055cbd9289 | |
parent | 66bd27e6f9018832f99be1c211e76c8f71165c92 (diff) | |
download | mitmproxy-6e4af64050fe9a0efbfa73193131065b96feca3c.tar.gz mitmproxy-6e4af64050fe9a0efbfa73193131065b96feca3c.tar.bz2 mitmproxy-6e4af64050fe9a0efbfa73193131065b96feca3c.zip |
minor fix about if-else statement
-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: |