httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul J. Reder" <rede...@raleigh.ibm.com>
Subject [Patch]: Fix mod_mime_magic to hook in the right order. Third try.
Date Fri, 04 Feb 2000 21:33:58 GMT
This is another attempt to get server side includes to work by 
getting the .shtml type to be recognized correctly. This attempt
has put the ordering onus on the extraneous module (per Ben's 
request).

I hope that this finally solves the problem satisfactorily.

-- 
Paul J. Reder
---------------------------------------------------------------
No one can make you feel inferior without your consent.
		-- Eleanor Roosevelt


Index: mod_mime_magic.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_mime_magic.c,v
retrieving revision 1.13
diff -u -r1.13 mod_mime_magic.c
--- mod_mime_magic.c	2000/01/19 02:42:11	1.13
+++ mod_mime_magic.c	2000/02/04 21:27:48
@@ -2482,7 +2482,11 @@
 
 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);
 }

Mime
View raw message