mirror of https://github.com/vee1e/mitmproxy - An interactive TLS-capable intercepting HTTP proxy for penet
Find a file
Ariel e20a24b54e
fix(web): render AVIF images and IANA icon favicons in the response tab (#8232)
* fix(web): render AVIF images and IANA icon favicons in the response tab

The `ViewImage` regex in `HttpMessage.tsx` rejected two valid image
content types, so the response tab did not render them inline:

1. `image/avif` was missing from the alternation. AVIF is widely served
   by image CDNs and decoded natively in `<img>` by Chrome 85+,
   Firefox 93+, and Safari 16.1+.
2. `image/vnd.microsoft.icon` (the IANA-canonical `.ico` MIME) never
   matched because the alternation had `vnc.microsoft.icon` — a
   `vnc`/`vnd` typo. The de-facto legacy `image/x-icon` continued to
   work, which made the bug easy to miss. The dots are also unescaped,
   so the regex coincidentally matches `image/vncXmicrosoftXicon` for
   any single character `X`.

Added `avif`, corrected `vnc` → `vnd`, and escaped the dots. Added a
`ViewImage.matches` unit test covering both the additions and the
existing image MIME types.

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-15 10:12:27 +02:00
.github Bump the github-actions group with 8 updates (#8209) 2026-05-11 15:43:00 +02:00
docs docs: document addon live-reload + testing pattern (#8210) 2026-05-11 14:18:51 +00:00
examples Fix IP blocking and merge additional DoH blocklists (#8197) 2026-04-28 20:25:50 +02:00
mitmproxy reopen main for development 2026-05-12 13:02:14 +00:00
release release ci: do not eat npm output 2025-11-24 19:06:11 +01:00
test Reduce generated certificate validity (#8203) 2026-05-11 14:08:05 +00:00
web fix(web): render AVIF images and IANA icon favicons in the response tab (#8232) 2026-05-15 10:12:27 +02:00
.gitattributes
.gitignore switch to uv (#7662) 2025-04-16 18:38:35 +02:00
.python-version Update to Python 3.14 (#7918) 2025-10-15 21:32:53 +02:00
AGENTS.md Add AGENTS.md (#7907) 2025-10-09 20:20:57 +02:00
CHANGELOG.md fix(web): render AVIF images and IANA icon favicons in the response tab (#8232) 2026-05-15 10:12:27 +02:00
codecov.yml
CONTRIBUTING.md switch to uv (#7662) 2025-04-16 18:38:35 +02:00
LICENSE
MANIFEST.in
pyproject.toml Bump the tox group across 1 directory with 2 updates (#8226) 2026-05-12 17:43:58 +02:00
README.md remove codacy badge 2026-04-12 23:27:13 +02:00
SECURITY.md SECURITY.md: Exclude DoS from scope (#8171) 2026-04-12 22:36:48 +02:00
uv.lock Bump the tox group across 1 directory with 2 updates (#8226) 2026-05-12 17:43:58 +02:00

mitmproxy

Continuous Integration Status autofix.ci: enabled Coverage Status Latest Version Supported Python versions

mitmproxy is an interactive, SSL/TLS-capable intercepting proxy with a console interface for HTTP/1, HTTP/2, and WebSockets.

mitmdump is the command-line version of mitmproxy. Think tcpdump for HTTP.

mitmweb is a web-based interface for mitmproxy.

Installation

The installation instructions are here. If you want to install from source, see CONTRIBUTING.md.

Documentation & Help

General information, tutorials, and precompiled binaries can be found on the mitmproxy website.

mitmproxy.org

The documentation for mitmproxy is available on our website:

mitmproxy documentation stable mitmproxy documentation dev

If you have questions on how to use mitmproxy, please use GitHub Discussions!

mitmproxy discussions

Contributing

As an open source project, mitmproxy welcomes contributions of all forms.

Dev Guide