mitmproxy/examples/complex/dup_and_replay.py

9 lines
171 B
Python
Raw Normal View History

2016-10-26 05:06:52 +00:00
from mitmproxy import ctx
2016-07-08 01:37:33 +00:00
def request(flow):
f = flow.copy()
ctx.master.view.add(f)
f.request.path = "/changed"
ctx.master.replay_request(f, block=True)