mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-03-27 01:15:00 +08:00
Merge pull request #1649 from cortesi/kill
Don't call error for flow kill
This commit is contained in:
@@ -165,7 +165,6 @@ class Flow(stateobject.StateObject):
|
||||
self.reply.take()
|
||||
self.reply.kill(force=True)
|
||||
self.reply.commit()
|
||||
master.error(self)
|
||||
|
||||
def intercept(self, master):
|
||||
"""
|
||||
|
||||
@@ -480,7 +480,7 @@ class FlowView(tabs.Tabs):
|
||||
else:
|
||||
new_flow, new_idx = self.state.get_prev(idx)
|
||||
if new_flow is None:
|
||||
signals.status_message.send(message="No more flows!")
|
||||
signals.status_message.send(message="No more flows")
|
||||
else:
|
||||
signals.pop_view_state.send(self)
|
||||
self.master.view_flow(new_flow, self.tab_offset)
|
||||
|
||||
@@ -104,7 +104,6 @@ class TestHTTPFlow:
|
||||
assert f.killable
|
||||
f.kill(fm)
|
||||
assert not f.killable
|
||||
assert fm.error.called
|
||||
assert f.reply.value == Kill
|
||||
|
||||
def test_killall(self):
|
||||
|
||||
Reference in New Issue
Block a user