mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 18:18:25 +00:00
parent
9f6657727b
commit
1a5c27aa7d
@ -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 = ""
|
||||
|
Loading…
Reference in New Issue
Block a user