gstein 00/08/16 12:03:28
Modified: src/main http_core.c
Log:
fix the insertion of the CORE filter. it should be happen last.
Revision Changes Path
1.101 +4 -5 apache-2.0/src/main/http_core.c
Index: http_core.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/main/http_core.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -r1.100 -r1.101
--- http_core.c 2000/08/14 03:07:58 1.100
+++ http_core.c 2000/08/16 19:03:28 1.101
@@ -3016,13 +3016,12 @@
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 = {
|