blob: b40e243482e2bd217715d0b7866ab368def5d145 (
plain)
1
2
3
4
5
6
7
8
9
10
|
import json
from mitmproxy import http
def response(flow: http.HTTPFlow) -> None:
if flow.request.path.startswith("/asnp/nud/v") and flow.response and flow.response.content:
data = json.loads(flow.response.content)
data['workflow'] = {}
flow.response.text = json.dumps(data, separators=(',', ':'))
|