mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
b174fd5e1f
* 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""
|