mitmproxy/examples/dup_and_replay.py

8 lines
182 B
Python
Raw Normal View History

2016-07-08 01:37:33 +00:00
from mitmproxy import master
def request(flow):
f = master.duplicate_flow(flow)
f.request.path = "/changed"
2016-07-08 01:37:33 +00:00
master.replay_request(f, block=True, run_scripthooks=False)