httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul J. Reder" <>
Subject Re: [Patch]: Fix mod_mime to hook in the right order. Second attempt.
Date Thu, 20 Jan 2000 19:32:48 GMT

For one (possibly fantasticly) good reason. If there is a type and
handler registered with mod_mime (say AddHandler server-parsed .shtml
AddType text/html .shtml), but mod_mime_magic is run first then the
shtml file will be (correctly) identified as text/html, but the
handler will never be called. Thus server side includes are broken.

This happens partly because this hook is created to run FIRST rather
than ALL. So when mod_mime_magic returns OK, its all over. Not to
mention that if mod_mime can correctly identify the file, why pay the
performance price of mod_mime_magic for every request.

Ben Laurie wrote:
> For no fantastically good reason, I feel that mod_mime_magic should ask
> to run before mod_mime, rather than the other way around, as you have it
> here.
> Chers,
> Ben.
Paul J. Reder
"Remember, Information is not knowledge; Knowledge is not Wisdom;
Wisdom is not truth; Truth is not beauty; Beauty is not love;
Love is not music; Music is the best." -- Frank Zappa

View raw message