mitmproxy/examples/add_header.py
2015-05-30 12:03:28 +12:00

3 lines
78 B
Python

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