minor fixes
This commit is contained in:
parent
a0ad0b06a0
commit
eda1b39a74
|
@ -1,7 +1,7 @@
|
||||||
from mitmproxy import master
|
from mitmproxy import ctx
|
||||||
|
|
||||||
|
|
||||||
def request(flow):
|
def request(flow):
|
||||||
f = master.duplicate_flow(flow)
|
f = ctx.master.state.duplicate_flow(flow)
|
||||||
f.request.path = "/changed"
|
f.request.path = "/changed"
|
||||||
master.replay_request(f, block=True, run_scripthooks=False)
|
ctx.master.replay_request(f, block=True, run_scripthooks=False)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
master = None # type: "mitmproxy.master.Master"
|
master = None # type: "mitmproxy.master.Master"
|
||||||
log = None # type: "mitmproxy.controller.Log"
|
log = None # type: "mitmproxy.log.Log"
|
||||||
|
|
Loading…
Reference in New Issue