From: Bill Stoddard Date: Wed, 16 Feb 2000 21:21:51 +0000 (+0000) Subject: Make sure mod_mime always has a chance to run before mod_mime_magic. X-Git-Tag: 1.3.12~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32bb12057606f78678f276b3eb620b4c697ee17b;p=apache Make sure mod_mime always has a chance to run before mod_mime_magic. Submitted by: Paul Reder Reviewed by: Bill Stoddard git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84635 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/metadata/mod_mime_magic.c b/modules/metadata/mod_mime_magic.c index 218ee92684..a285413a2d 100644 --- a/modules/metadata/mod_mime_magic.c +++ b/modules/metadata/mod_mime_magic.c @@ -2482,7 +2482,11 @@ static int magic_find_ct(request_rec *r) static void register_hooks(void) { - ap_hook_type_checker(magic_find_ct, NULL, NULL, HOOK_MIDDLE); + static const char * const aszPre[]={ "mod_mime.c", NULL }; + + /* mod_mime_magic should be run after mod_mime, if at all. */ + + ap_hook_type_checker(magic_find_ct, aszPre, NULL, HOOK_MIDDLE); ap_hook_post_config(magic_init, NULL, NULL, HOOK_FIRST); }