From: Greg Stein Date: Wed, 16 Aug 2000 19:03:28 +0000 (+0000) Subject: fix the insertion of the CORE filter. it should be happen last. X-Git-Tag: APACHE_2_0_ALPHA_6~16 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d954f484ab5aae6eda12b7ceef8aa08d4934454d;p=thirdparty%2Fapache%2Fhttpd.git fix the insertion of the CORE filter. it should be happen last. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86084 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index 117cac412ac..0fd286e0650 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -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 = {