mitmproxy/examples/add_header.py

3 lines
76 B
Python

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