[Privoxy-devel] [PATCH] Decode zlib-wrapped HTTP deflate responses

Fabian Keil fk at fabiankeil.de
Tue Nov 24 07:57:36 CET 2026


William B via Privoxy-devel <privoxy-devel at lists.privoxy.org> wrote on 2026-11-22 at 09:15:08:

> On master at `08593d41`, I found that a text filter worked on a raw
> DEFLATE response but left the same text untouched when the origin used
> the zlib wrapper specified for HTTP `Content-Encoding: deflate`. The
> attached patch updates `decompress_iob()` and includes a small
> loopback regression test. [RFC 9110
> §8.4.1.2](https://www.rfc-editor.org/rfc/rfc9110.html#section-8.4.1.2)

Thanks for the report and the patch.

Could you please clarify how you found this, for example by naming
the web site that serves responses that aren't properly handled without
your patch?

If you found it by looking at the code that would be useful to know
as well.

It looks like the patch got removed by Mailman as it was sent as
"application/octet-stream" which intentionally isn't a white-listed
content type for this list.

As a list moderator, I received a copy of the patch anyway,
and noticed that it's not in a format accepted by "git am".

Could you please resend the patch with the proper git meta data?

Sending the output of "git format-patch" should work and Mailman
shouldn't strip the patch again if it's being sent as "text/plain"
or "text/x-patch" this time.

If your MUA doesn't mess up white-space you can also send patches inline.

Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 870 bytes
Desc: OpenPGP digital signature
URL: <https://lists.privoxy.org/pipermail/privoxy-devel/attachments/20261124/55c47211/attachment.bin>


More information about the Privoxy-devel mailing list