Commit 658d38ee authored by Bill Stoddard's avatar Bill Stoddard
Browse files

Make sure mod_mime always has a chance to run before mod_mime_magic.

Submitted by:	Paul Reder <rederpj@raleigh.ibm.com>
Reviewed by:	Bill Stoddard <stoddard@raleigh.ibm.com>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84635 13f79535-47bb-0310-9956-ffa450edef68
parent 9338a21f
Loading
Loading
Loading
Loading
+5 −1
Changes for modules/metadata/mod_mime_magic.c: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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);
}