aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/ContentView/ContentViews.jsx
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2019-12-20 16:31:29 +0100
committerGitHub <noreply@github.com>2019-12-20 16:31:29 +0100
commit62b89e9447a4fc93b072b74b52e992ff5c17b2c3 (patch)
tree5988c66ffe5757ab76de17ef86a54904bec9094b /web/src/js/components/ContentView/ContentViews.jsx
parent67955fad3240d158711f30d9a660fdcb40f80624 (diff)
parentc872a5c70036fca4e4f91a879b98d8cd83ed2283 (diff)
downloadmitmproxy-62b89e9447a4fc93b072b74b52e992ff5c17b2c3.tar.gz
mitmproxy-62b89e9447a4fc93b072b74b52e992ff5c17b2c3.tar.bz2
mitmproxy-62b89e9447a4fc93b072b74b52e992ff5c17b2c3.zip
Merge pull request #3747 from cixtor/master
Fix #3571 to support image/webp in mitmweb to display previews
Diffstat (limited to 'web/src/js/components/ContentView/ContentViews.jsx')
-rw-r--r--web/src/js/components/ContentView/ContentViews.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/src/js/components/ContentView/ContentViews.jsx b/web/src/js/components/ContentView/ContentViews.jsx
index 387c940a..4da81c8f 100644
--- a/web/src/js/components/ContentView/ContentViews.jsx
+++ b/web/src/js/components/ContentView/ContentViews.jsx
@@ -7,7 +7,7 @@ import { MessageUtils } from '../../flow/utils'
import CodeEditor from './CodeEditor'
-const isImage = /^image\/(png|jpe?g|gif|vnc.microsoft.icon|x-icon)$/i
+const isImage = /^image\/(png|jpe?g|gif|webp|vnc.microsoft.icon|x-icon)$/i
ViewImage.matches = msg => isImage.test(MessageUtils.getContentType(msg))
ViewImage.propTypes = {
flow: PropTypes.object.isRequired,