From 1a5c27aa7db69f6175a8bb493fde85a8e92dcff7 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 9 Jun 2013 11:26:44 +1200 Subject: [PATCH] Massage content-type before sending it to mime detection Fixes #67 --- libmproxy/console/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/libmproxy/console/__init__.py b/libmproxy/console/__init__.py index fe75a0476..ba699d335 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 = ""