httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apache-2.0/src/modules/standard mod_mime.c
Date Sun, 19 Nov 2000 18:52:21 GMT
rbb         00/11/19 10:52:21

  Modified:    htdocs/manual/mod mod_mime.html
               src/modules/standard mod_mime.c
  Log:
  Update the SetFilter directive to work with Handlers instead of MIME-types.
  This also updates the docs to reflect the change.
  Submitted by:	Joshua Slive
  Reviewed by:	Ryan Bloom
  
  Revision  Changes    Path
  1.38      +7 -8      httpd-docs-2.0/htdocs/manual/mod/mod_mime.html
  
  Index: mod_mime.html
  ===================================================================
  RCS file: /home/cvs/httpd-docs-2.0/htdocs/manual/mod/mod_mime.html,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- mod_mime.html	2000/11/19 16:55:09	1.37
  +++ mod_mime.html	2000/11/19 18:52:20	1.38
  @@ -344,7 +344,7 @@
   <A
    HREF="directive-dict.html#Syntax"
    REL="Help"
  -><STRONG>Syntax:</STRONG></A> SetFilter <EM>Assign filters based
on MIME-type...</EM><BR>
  +><STRONG>Syntax:</STRONG></A> SetFilter <EM>Assign filters based
on Handler...</EM><BR>
   <A
    HREF="directive-dict.html#Context"
    REL="Help"
  @@ -363,8 +363,7 @@
   ><STRONG>Module:</STRONG></A> mod_mime
   
   <P>
  -The SetFilter directive maps a filter stack to the specified content
  -type.
  +The SetFilter directive maps a filter stack to the specified Handler.
   </P>
   <P>
   Example: <BLOCKQUOTE><CODE>
  @@ -372,15 +371,15 @@
   </CODE></BLOCKQUOTE>
   </P>
   <P>
  -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.
   </P>
   <P>
  -This can be very powerful when combined with either the <A HREF="#addtype">
  -AddType</A> or <A HREF="#addhandler">AddHandler</A> 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 <A HREF="#addhandler">
  +AddHandler</A> 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
   </P>
   <PRE>
   AddHandler server-parsed .shtml
  
  
  
  1.30      +1 -1      apache-2.0/src/modules/standard/mod_mime.c
  
  Index: mod_mime.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_mime.c,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- mod_mime.c	2000/11/19 16:55:11	1.29
  +++ mod_mime.c	2000/11/19 18:52:21	1.30
  @@ -837,7 +837,7 @@
       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)
  
  
  

Mime
View raw message