aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/console
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2013-06-09 11:26:44 +1200
committerAldo Cortesi <aldo@nullcube.com>2013-06-09 11:26:44 +1200
commit1a5c27aa7db69f6175a8bb493fde85a8e92dcff7 (patch)
tree394ae0aa2b7ad9326a47e7515f162300375aa4ea /libmproxy/console
parent9f6657727b9f1639970beb6052837a4ab6c33299 (diff)
downloadmitmproxy-1a5c27aa7db69f6175a8bb493fde85a8e92dcff7.tar.gz
mitmproxy-1a5c27aa7db69f6175a8bb493fde85a8e92dcff7.tar.bz2
mitmproxy-1a5c27aa7db69f6175a8bb493fde85a8e92dcff7.zip
Massage content-type before sending it to mime detection
Fixes #67
Diffstat (limited to 'libmproxy/console')
-rw-r--r--libmproxy/console/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmproxy/console/__init__.py b/libmproxy/console/__init__.py
index fe75a047..ba699d33 100644
--- a/libmproxy/console/__init__.py
+++ b/libmproxy/console/__init__.py
@@ -526,6 +526,7 @@ class ConsoleMaster(flow.FlowMaster):
def spawn_external_viewer(self, data, contenttype):
if contenttype:
+ contenttype = contenttype.split(";")[0]
ext = mimetypes.guess_extension(contenttype) or ""
else:
ext = ""