minor fixes

This commit is contained in:
Maximilian Hils 2016-10-25 22:06:52 -07:00
parent a0ad0b06a0
commit eda1b39a74
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
from mitmproxy import master
from mitmproxy import ctx
def request(flow):
f = master.duplicate_flow(flow)
f = ctx.master.state.duplicate_flow(flow)
f.request.path = "/changed"
master.replay_request(f, block=True, run_scripthooks=False)
ctx.master.replay_request(f, block=True, run_scripthooks=False)

View File

@ -1,2 +1,2 @@
master = None # type: "mitmproxy.master.Master"
log = None # type: "mitmproxy.controller.Log"
log = None # type: "mitmproxy.log.Log"