mitmproxy/examples/add_header.py
2011-08-05 13:26:39 +12:00

3 lines
78 B
Python

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