mitmproxy/examples/add_header.py

2 lines
73 B
Python
Raw Normal View History

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