httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stodd...@locus.apache.org
Subject cvs commit: apache-2.0/src/modules/standard mod_mime_magic.c
Date Wed, 16 Feb 2000 21:21:52 GMT
stoddard    00/02/16 13:21:52

  Modified:    src/modules/standard mod_mime_magic.c
  Log:
  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>
  
  Revision  Changes    Path
  1.14      +5 -1      apache-2.0/src/modules/standard/mod_mime_magic.c
  
  Index: mod_mime_magic.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_mime_magic.c,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- mod_mime_magic.c	2000/01/19 02:42:11	1.13
  +++ mod_mime_magic.c	2000/02/16 21:21:51	1.14
  @@ -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