mitmproxy/examples/dup_and_replay.py

4 lines
126 B
Python
Raw Normal View History

2014-09-08 14:02:31 +00:00
def request(context, flow):
f = context.duplicate_flow(flow)
f.request.path = "/changed"
2014-09-08 14:02:31 +00:00
context.replay_request(f)