mitmproxy/examples/fail_with_500.py

4 lines
97 B
Python

def response(context, flow):
flow.response.status_code = 500
flow.response.content = b""