summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2002-03-07 06:02:53 +0100
committerRyan Bloom <rbb@apache.org>2002-03-07 06:02:53 +0100
commit41a7e56b09bb82966d5a3014ab42fe404448e2d8 (patch)
tree5f14ca8950137ef0ee2d52b5e285391e38b42e3d /modules
parentConversion to XML (diff)
downloadapache2-41a7e56b09bb82966d5a3014ab42fe404448e2d8.tar.xz
apache2-41a7e56b09bb82966d5a3014ab42fe404448e2d8.zip
There is no reason to insert the protocol filters in the insert_filters
phase. This moves us to inserting the filters in the create_request phase. This makes more sense, because now the protocol filters are attached to the request as soon as possible. Previously, some requests never called the insert_filters phase, so they don't get the filters. Think redirects for reqeusts that never call insert_filters. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93750 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/http/http_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/http/http_core.c b/modules/http/http_core.c
index fcd7029e09..2d0ed64501 100644
--- a/modules/http/http_core.c
+++ b/modules/http/http_core.c
@@ -302,7 +302,7 @@ static int ap_process_http_connection(conn_rec *c)
return OK;
}
-static void ap_http_insert_filter(request_rec *r)
+static void http_create_request(request_rec *r)
{
if (!r->main && !r->prev) {
ap_add_output_filter_handle(ap_byterange_filter_handle,
@@ -321,7 +321,7 @@ static void register_hooks(apr_pool_t *p)
ap_hook_map_to_storage(ap_send_http_trace,NULL,NULL,APR_HOOK_MIDDLE);
ap_hook_http_method(http_method,NULL,NULL,APR_HOOK_REALLY_LAST);
ap_hook_default_port(http_port,NULL,NULL,APR_HOOK_REALLY_LAST);
- ap_hook_insert_filter(ap_http_insert_filter, NULL, NULL, APR_HOOK_REALLY_LAST);
+ ap_hook_create_request(http_create_request, NULL, NULL, APR_HOOK_REALLY_LAST);
ap_http_input_filter_handle =
ap_register_input_filter("HTTP_IN", ap_http_filter,
AP_FTYPE_HTTP_HEADER);