Skip to content

Add zlib contentview for application/zlib bodies - #8546

Open
hmalvee wants to merge 1 commit into
mitmproxy:mainfrom
hmalvee:zlib-contentview
Open

hmalvee wants to merge 1 commit into
mitmproxy:mainfrom
hmalvee:zlib-contentview

Conversation

@hmalvee

@hmalvee hmalvee commented Oct 29, 2026

Copy link
Copy Markdown

Fixes #8283.

Adds a small "Zlib" contentview. It's picked automatically when the content type is application/zlib, decompresses the body and shows it as text, same as the raw view does. If the body isn't valid zlib data, mitmproxy falls back to the raw view like it does for other views.

I left JSON detection out, since the discussion in the issue said plain decompression is enough for now.

@mhils

mhils commented Oct 30, 2026

Copy link
Copy Markdown
Member

Did you observe application/zlib in practice?

If we decide to add this, we need to add it in Rust.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add an optional decompression for content-type: application/zlib

2 participants