]> granicus.if.org Git - apache/commitdiff
core: set ap_request_core_filter() last.
authorYann Ylavic <ylavic@apache.org>
Tue, 31 Jul 2018 10:50:18 +0000 (10:50 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 31 Jul 2018 10:50:18 +0000 (10:50 +0000)
Since it may retain data and should run after other "request" filters, use
the last possible position for a "request" filter: AP_FTYPE_CONNECTION - 1.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1837131 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index 7fc2c35ec0eb822563845670c9141c8509c70802..ffaa647f4ba3c59f1a695af96513029ae15a69b6 100644 (file)
@@ -5872,7 +5872,7 @@ static void register_hooks(apr_pool_t *p)
                                   NULL, AP_FTYPE_NETWORK);
     ap_request_core_filter_handle =
         ap_register_output_filter("REQ_CORE", ap_request_core_filter,
-                                  NULL, AP_FTYPE_TRANSCODE);
+                                  NULL, AP_FTYPE_CONNECTION - 1);
     ap_subreq_core_filter_handle =
         ap_register_output_filter("SUBREQ_CORE", ap_sub_req_output_filter,
                                   NULL, AP_FTYPE_CONTENT_SET);