mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-29 19:08:44 +00:00
Merge pull request #3747 from cixtor/master
Fix #3571 to support image/webp in mitmweb to display previews
This commit is contained in:
commit
62b89e9447
@ -7,7 +7,7 @@ import { MessageUtils } from '../../flow/utils'
|
|||||||
import CodeEditor from './CodeEditor'
|
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.matches = msg => isImage.test(MessageUtils.getContentType(msg))
|
||||||
ViewImage.propTypes = {
|
ViewImage.propTypes = {
|
||||||
flow: PropTypes.object.isRequired,
|
flow: PropTypes.object.isRequired,
|
||||||
|
Loading…
Reference in New Issue
Block a user