diff options
author | Maximilian Hils <git@maximilianhils.com> | 2015-02-07 19:33:36 +0100 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2015-02-07 19:33:36 +0100 |
commit | 5d568708188086c6deb747bee4365552483b6807 (patch) | |
tree | 6e15582f5e1454a4916bbcf0b68a14d3c5f9de3d /libmproxy/flow.py | |
parent | 9a32193005ec4490307b074e6e9237a74492ae3b (diff) | |
download | mitmproxy-5d568708188086c6deb747bee4365552483b6807.tar.gz mitmproxy-5d568708188086c6deb747bee4365552483b6807.tar.bz2 mitmproxy-5d568708188086c6deb747bee4365552483b6807.zip |
disable replay from ui for live flows
Diffstat (limited to 'libmproxy/flow.py')
-rw-r--r-- | libmproxy/flow.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmproxy/flow.py b/libmproxy/flow.py index dd9900e9..49ec5a0b 100644 --- a/libmproxy/flow.py +++ b/libmproxy/flow.py @@ -828,6 +828,8 @@ class FlowMaster(controller.Master): """ Returns None if successful, or error message if not. """ + if f.live and run_scripthooks: + return "Can't replay live request." if f.intercepted: return "Can't replay while intercepting..." if f.request.content == http.CONTENT_MISSING: |