Hi Stefan,

Stefan Fritsch <s...@sfritsch.de> writes:

> On Thursday, 2 March 2017 16:15:45 CET Thorsten Glaser wrote:
>> Apache 2 does not send *any* Content-Type header for plaintext files
>> any more, 
>
> With "any more", do you mean that this is a regression, i.e. did it work in 
> an 
> earlier version? If yes, which version?

The DefaultType directive which Thorsten mentioned ceased working in
Apache 2.3.x as per
https://httpd.apache.org/docs/2.4/mod/core.html#defaulttype

> On Friday, 3 March 2017 12:28:17 CET Thorsten Glaser wrote:
>> On Fri, 3 Mar 2017, Dominik George wrote:
>> > Apache uses /etc/mime.types to translate extensions into mime types,
>> > which, in my eyes, is a design flaw, because it is a 1:n mapping used by
>> 
>> I believe this system to be horridly flawed anyway… I mean, where
>> should Apache know the correct MIME type from?
>
> If the defaults don't suite you, you have to configure the mime types 
> manually. 
> In general, no Content-Type header is much better than a wrong Content-Type 
> header. So, not having any default for no file extension seems
> reasonable.

While I agree in principle, there is a downside in practice: wget
currently crashes when the header is absent and gzip compression is
used: https://bugs.debian.org/880542

-- 
Best regards,
Michael

Reply via email to