Re: Re: mime_magic_module incorrectly sets Content-Encoding of compressed files

Rich Bowen <[email protected]> Tue, 28 Apr 2026 18:53:42 -0000
Newsgroups gmane.comp.apache.user
Message-ID <[email protected]>
Gordon,

Thanks for the detailed report and the RFC 9110 citation =E2=80=94 you're rig=
ht that this seems to be incorrect behavior.

A couple of suggestions for getting this addressed:

Please file a bug in the httpd Bugzilla at https://bz.apache.org/bugzilla/ if=
 you haven't already =E2=80=94 that's where issues get tracked.

For the proposed patch, please bring it up on [email protected]. The GitHu=
b repo is a read-only mirror of the SVN repository, so PRs opened there tend =
to get overlooked. The dev@ list is where code changes get reviewed and commi=
tted.

Thanks for taking the time to track this down and propose a fix.

Rich

On 2026/03/05 08:47:46 Gordon Messmer wrote:
> I would suggest simply dropping the uncompress function:
>=20
> https://github.com/gordonmessmer/httpd/pull/1
>=20
> RFC 9110 is clear and specific "If the media type includes an inherent=20
> encoding, such as a data format that is always compressed, then that=20
> encoding would not be restated in Content-Encoding even if it happens to=20
> be the same algorithm as one of the content codings"
>=20
>=20
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>=20
>=20