From: Ryan Bloom Date: Mon, 20 Nov 2000 18:29:55 +0000 (+0000) Subject: Get SetFilter working with MIME-types again and update the docs X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77ba53fcaf9e09014652b606b5eca86aaa558505;p=apache Get SetFilter working with MIME-types again and update the docs git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87035 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_mime.html b/docs/manual/mod/mod_mime.html index dd23695b7d..ef3d31bd6c 100644 --- a/docs/manual/mod/mod_mime.html +++ b/docs/manual/mod/mod_mime.html @@ -344,7 +344,7 @@ HREF="./mod_negotiation.html">mod_negotiation Syntax: SetFilter Assign filters based on Handler...
+>Syntax: SetFilter Assign filters based on MIME-type...
mod_negotiation >Module: mod_mime

-The SetFilter directive maps a filter stack to the specified Handler. +The SetFilter directive maps a filter stack to the specified MIME-type.

Example:

@@ -371,19 +371,18 @@ SetFilter server-parsed INCLUDES CACHE

-Then any document with the server-parsed Handler will pass through the +Then any document with the server-parsed MIME-type 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 -AddHandler directives. This allows you to specify an extension for a +This can be very powerful when combined with the +AddType directive. 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
-SetFilter server-parsed INCLUDES 
+SetFilter text/html INCLUDES 
 

documents with the extension ".shtml" would be passed through diff --git a/modules/http/mod_mime.c b/modules/http/mod_mime.c index 05f4b2edd3..32ecc16b1e 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->handler, NULL); + apr_table_do(filter_chain, r, conf->filter_names, r->content_type, NULL); } static void register_hooks(void)