mitmproxy/examples/simple_script

7 lines
138 B
Python
Executable File

#!/usr/bin/env python
from libmproxy import script
f = script.load_flow()
f.request.headers["newheader"] = ["foo"]
script.return_flow(f)