aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mitmproxy/addons/view.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mitmproxy/addons/view.py b/mitmproxy/addons/view.py
index da47fbe8..6c771d96 100644
--- a/mitmproxy/addons/view.py
+++ b/mitmproxy/addons/view.py
@@ -284,9 +284,11 @@ class View(collections.Sequence):
"""
Returns the current view order.
"""
+ order = ""
for k in self.orders.keys():
if self.order_key == self.orders[k]:
- return k
+ order = k
+ return order
# Filter
@command.command("view.filter.set")