from mitmproxy import ctx


def request(flow):
    f = ctx.master.state.duplicate_flow(flow)
    f.request.path = "/changed"
    ctx.master.replay_request(f, block=True, run_scripthooks=False)

from mitmproxy import ctx


def request(flow):
    f = ctx.master.state.duplicate_flow(flow)
    f.request.path = "/changed"
    ctx.master.replay_request(f, block=True)

Remove dead run_scripthooks example reference.
Remove dead run_scripthooks example reference.
  from mitmproxy import ctx
  
  
  def request(flow):
      f = ctx.master.state.duplicate_flow(flow)
      f.request.path = "/changed"
-     ctx.master.replay_request(f, block=True, run_scripthooks=False)
+     ctx.master.replay_request(f, block=True)
  
Remove dead run_scripthooks example reference.
## Code Before:
from mitmproxy import ctx


def request(flow):
    f = ctx.master.state.duplicate_flow(flow)
    f.request.path = "/changed"
    ctx.master.replay_request(f, block=True, run_scripthooks=False)

## Instruction:
Remove dead run_scripthooks example reference.
## Code After:
from mitmproxy import ctx


def request(flow):
    f = ctx.master.state.duplicate_flow(flow)
    f.request.path = "/changed"
    ctx.master.replay_request(f, block=True)
