]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
fix the insertion of the CORE filter. it should be happen last.
authorGreg Stein <gstein@apache.org>
Wed, 16 Aug 2000 19:03:28 +0000 (19:03 +0000)
committerGreg Stein <gstein@apache.org>
Wed, 16 Aug 2000 19:03:28 +0000 (19:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86084 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_core.c

index 117cac412ac006dd340dbe428c6457adb2be01bb..0fd286e06502b662b74b88c31dfd500b2b25ab00 100644 (file)
@@ -3016,13 +3016,12 @@ static void register_hooks(void)
     ap_hook_type_checker(do_nothing,NULL,NULL,AP_HOOK_REALLY_LAST);
     ap_hook_access_checker(do_nothing,NULL,NULL,AP_HOOK_REALLY_LAST);
 
-    /* This is kind of odd, and it would be cool to clean it up a bit.
-     * The first function just registers the core's register_filter hook.
-     * The other associates a global name with the filter defined
-     * by the core module.
+    /* define the CORE filter, then register a hook to insert it at
+     * request-processing time.
      */
-    ap_hook_insert_filter(core_register_filter, NULL, NULL, AP_HOOK_MIDDLE);
     ap_register_filter("CORE", core_filter, AP_FTYPE_CONNECTION);
+    ap_hook_insert_filter(core_register_filter, NULL, NULL,
+                          AP_HOOK_REALLY_LAST);
 }
 
 API_VAR_EXPORT module core_module = {