aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console/flowview.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2012-08-18 18:14:30 +1200
committerAldo Cortesi <aldo@nullcube.com>2012-08-18 18:14:30 +1200
commit53e453f72ede3b99fc36aca998ec78f8c186de1c (patch)
tree3c8a3c0265da8422711e9a0694bfc92eda23a68f /libmproxy/console/flowview.py
parent15e234558dc3ca2e7fb3a3ef73211994bf541584 (diff)
downloadmitmproxy-53e453f72ede3b99fc36aca998ec78f8c186de1c.tar.gz
mitmproxy-53e453f72ede3b99fc36aca998ec78f8c186de1c.tar.bz2
mitmproxy-53e453f72ede3b99fc36aca998ec78f8c186de1c.zip
Use the new ODict get_first convenience function in a bunch of places.
Diffstat (limited to 'libmproxy/console/flowview.py')
-rw-r--r--libmproxy/console/flowview.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmproxy/console/flowview.py b/libmproxy/console/flowview.py
index a6ee41eb..0106e075 100644
--- a/libmproxy/console/flowview.py
+++ b/libmproxy/console/flowview.py
@@ -555,8 +555,8 @@ class FlowView(common.WWrap):
elif key == "z":
if conn:
self.flow.backup()
- e = conn.headers["content-encoding"] or ["identity"]
- if e[0] != "identity":
+ e = conn.headers.get_first("content-encoding", "identity")
+ if e != "identity":
conn.decode()
else:
self.master.prompt_onekey(