mitmproxy/examples/add_header.py

3 lines
67 B
Python

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