mitmproxy/examples/add_header.py

2 lines
77 B
Python

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