mitmproxy/examples/add_header.py

3 lines
78 B
Python

def response(context, flow):
flow.response.headers["newheader"] = ["foo"]