mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-23 11:56:52 +08:00
* Adding example which turns every reponse into an HTTP 500. * Prefer b"" over None for response.content.
4 lines
97 B
Python
4 lines
97 B
Python
def response(context, flow):
|
|
flow.response.status_code = 500
|
|
flow.response.content = b""
|