mitmproxy/examples/simple_script

7 lines
138 B
Plaintext
Raw Normal View History

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