From 1206c2c37d42659e2f0655462ddc88f7fc1a8525 Mon Sep 17 00:00:00 2001
From: Ryan Bloom
-The SetFilter directive maps a filter stack to the specified content
-type.
+The SetFilter directive maps a filter stack to the specified Handler.
Example:
+>Syntax: SetFilter Assign filters based on Handler...
mod_negotiation
>Module: mod_mime
@@ -372,15 +371,15 @@ SetFilter server-parsed INCLUDES CACHE
-Then any document with the server-parsed MIME-type will pass through the +Then any document with the server-parsed Handler will pass through the INCLUDES and CACHE filters. The filters are added in the same order that they are specified in the config file.
-This can be very powerful when combined with either the -AddType or AddHandler directives. This allows -you to specify an extension for a MIME-type and a set of filters for files -with those extensions to be passed through +This can be very powerful when combined with either the +AddHandler directives. This allows you to specify an extension for a +MIME-type and a set of filters for files with those extensions to be passed +through
AddHandler server-parsed .shtml diff --git a/modules/http/mod_mime.c b/modules/http/mod_mime.c index 32ecc16b1e..05f4b2edd3 100644 --- a/modules/http/mod_mime.c +++ b/modules/http/mod_mime.c @@ -837,7 +837,7 @@ static void mime_insert_filter(request_rec *r) mime_dir_config *conf = (mime_dir_config *) ap_get_module_config(r->per_dir_config, &mime_module); - apr_table_do(filter_chain, r, conf->filter_names, r->content_type, NULL); + apr_table_do(filter_chain, r, conf->filter_names, r->handler, NULL); } static void register_hooks(void) -- 2.40.0