Fix #2071, remove client_connect.mitmcert when dumping flow into json.

This commit is contained in:
Matthew Shao 2017-02-27 21:45:26 +08:00
parent 2b3093fa1c
commit 7b4e60a2e7

View File

@ -85,6 +85,7 @@ def flow_to_json(flow: mitmproxy.flow.Flow) -> dict:
"is_replay": flow.response.is_replay,
}
f.get("server_conn", {}).pop("cert", None)
f.get("client_conn", {}).pop("mitmcert", None)
return f