Package: apache2 Version: 2.4.54-3 Severity: normal Dear Maintainer,
The "RemoveCharset" directive[1] does not work. The "mime" module is loaded by default and adds a charset for all files with the ".cis" extension: > AddCharset ISO-2022-CN .iso2022-cn .cis I tried to remove this with the "RemoveCharset" directive: > RemoveCharset .cis and > RemoveCharset .iso2022-cn .cis (in my .htaccess file, but also directly below the "AddCharset" line in mime.conf) Still, when fetching a file with ".cis" in its name Apache adds the charset to the content-type header: > $ curl -sI http://stouyapi.cwboo/game/com.cis.ouya.oth.htm |grep Content-Type > Content-Type: text/html; charset=iso-2022-cn When commenting out the "AddCharset" line, the charset is not added to the header. [1] https://httpd.apache.org/docs/2.4/mod/mod_mime.html#removecharset -- Package-specific info: -- System Information: Debian Release: bookworm/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental') merged-usr: no Architecture: amd64 (x86_64) Kernel: Linux 5.18.0-2-amd64 (SMP w/4 CPU threads; PREEMPT) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages apache2 depends on: ii apache2-bin 2.4.54-3 ii apache2-data 2.4.54-3 ii apache2-utils 2.4.54-3 ii init-system-helpers 1.64 ii lsb-base 11.2 ii mime-support 3.66 ii perl 5.34.0-5 ii procps 2:3.3.17-7+b1 Versions of packages apache2 recommends: ii ssl-cert 1.1.2 Versions of packages apache2 suggests: ii apache2-doc 2.4.54-3 pn apache2-suexec-pristine | apache2-suexec-custom <none> ii chromium [www-browser] 104.0.5112.101-1 ii dillo [www-browser] 3.0.5-7+b1 ii firefox [www-browser] 104.0-1 ii lynx [www-browser] 2.9.0dev.10-1 Versions of packages apache2-bin depends on: ii libapr1 1.7.0-8 ii libaprutil1 1.6.1-5+b2 ii libaprutil1-dbd-sqlite3 1.6.1-5+b2 ii libaprutil1-ldap 1.6.1-5+b2 ii libbrotli1 1.0.9-2+b4 ii libc6 2.34-7 ii libcrypt1 1:4.4.28-2 ii libcurl4 7.84.0-2 ii libjansson4 2.14-2 ii libldap-2.5-0 2.5.12+dfsg-2+b1 ii liblua5.3-0 5.3.6-1 ii libnghttp2-14 1.49.0-1 ii libpcre2-8-0 10.40-1 ii libssl3 3.0.5-2 ii libxml2 2.9.14+dfsg-1+b1 ii perl 5.34.0-5 ii zlib1g 1:1.2.11.dfsg-4.1 Versions of packages apache2-bin suggests: ii apache2-doc 2.4.54-3 pn apache2-suexec-pristine | apache2-suexec-custom <none> ii chromium [www-browser] 104.0.5112.101-1 ii dillo [www-browser] 3.0.5-7+b1 ii firefox [www-browser] 104.0-1 ii lynx [www-browser] 2.9.0dev.10-1 Versions of packages apache2 is related to: ii apache2 2.4.54-3 ii apache2-bin 2.4.54-3 -- Configuration Files: /etc/apache2/envvars changed [not included] /etc/apache2/mods-available/mime.conf changed [not included] -- no debconf information

