Re: No Content-Type header despite DefaultType directive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 5, 2011 at 3:08 PM, Dennis Jacobfeuerborn
<dennisml@xxxxxxxxxxxx> wrote:
> Hi,
> I am trying to get Apache to send a file with the filename "test" that
> contains html through a filter for the mime type text/html. The problem is
> that even when I set a DefaultType in .htaccess the response doesn't contain
> a Content-Type header. The browser actually displays the content as html
> (probably by guessing) but since the response itself doesn't contain an
> explicit mime type the filter does not get applied.
>
> Shouldn't Apache always set a mime type when I use DefaultType?
>
> Regards,
>  Dennis
>

Are you sure it doesn't set the type, and just not run it through the filter?

There is a big warning on AddOutputFilterByType that it will not fire
if the type is determined from DefaultType.

http://httpd.apache.org/docs/2.2/mod/core.html#addoutputfilterbytype

Cheers

Tom

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux