diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2013-06-09 11:26:44 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2013-06-09 11:26:44 +1200 |
commit | 1a5c27aa7db69f6175a8bb493fde85a8e92dcff7 (patch) | |
tree | 394ae0aa2b7ad9326a47e7515f162300375aa4ea /libmproxy | |
parent | 9f6657727b9f1639970beb6052837a4ab6c33299 (diff) | |
download | mitmproxy-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')
-rw-r--r-- | libmproxy/console/__init__.py | 1 |
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 = "" |