diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2011-03-20 09:31:39 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2011-03-20 09:31:39 +1300 |
commit | 4f877cde6a9a6b99c3bf452f2164ab09abc64d50 (patch) | |
tree | fcc9ece346346bb229060c4f2fe049730e2e65bf /libmproxy | |
parent | 80e023b5ba9fa5f4a9ec5cf4a60753e01a590c05 (diff) | |
download | mitmproxy-4f877cde6a9a6b99c3bf452f2164ab09abc64d50.tar.gz mitmproxy-4f877cde6a9a6b99c3bf452f2164ab09abc64d50.tar.bz2 mitmproxy-4f877cde6a9a6b99c3bf452f2164ab09abc64d50.zip |
Reverse order of flows in mitmproxy.
It matches user expectations much better to have new flows appended to the bottom.
Diffstat (limited to 'libmproxy')
-rw-r--r-- | libmproxy/console.py | 2 | ||||
-rw-r--r-- | libmproxy/flow.py | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/libmproxy/console.py b/libmproxy/console.py index 3503e2c0..46bd0078 100644 --- a/libmproxy/console.py +++ b/libmproxy/console.py @@ -715,8 +715,6 @@ class ConsoleState(flow.State): f = flow.State.add_request(self, req) if self.focus is None: self.set_focus(0) - else: - self.set_focus(self.focus + 1) return f def add_response(self, resp): diff --git a/libmproxy/flow.py b/libmproxy/flow.py index 718a3dcd..eed006b4 100644 --- a/libmproxy/flow.py +++ b/libmproxy/flow.py @@ -343,7 +343,7 @@ class State: Add a request to the state. Returns the matching flow. """ f = Flow(req) - self.flow_list.insert(0, f) + self.flow_list.append(f) self.flow_map[req] = f return f |