10 lines
328 B
Python
10 lines
328 B
Python
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=(',', ':')) |