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 = ""