mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 18:27:18 +00:00
add svg image preview support (#6551)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
0b5e310881
commit
ba9f74b248
1 changed files with 2 additions and 1 deletions
|
|
@ -133,7 +133,8 @@ export default function HttpMessage({ flow, message }: HttpMessageProps) {
|
|||
}
|
||||
}
|
||||
|
||||
const isImage = /^image\/(png|jpe?g|gif|webp|vnc.microsoft.icon|x-icon)$/i;
|
||||
const isImage =
|
||||
/^image\/(png|jpe?g|gif|webp|vnc.microsoft.icon|x-icon|svg\+xml)$/i;
|
||||
ViewImage.matches = (msg) =>
|
||||
isImage.test(MessageUtils.getContentType(msg) || "");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue