]> granicus.if.org Git - apache/commitdiff
The per_dir_merge overlay of AddInputFilter/AddOutputFilter must
authorWilliam A. Rowe Jr <wrowe@apache.org>
Sat, 8 Sep 2001 05:50:12 +0000 (05:50 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Sat, 8 Sep 2001 05:50:12 +0000 (05:50 +0000)
  absolutely replace a prior definition for the same file extension.
  Picture AddOutputFilter Includes .html in a directory, and needing
  to replace that behavior in a subdirectory which does not contain
  SSI html files.  This behavior must remain consistent to the other
  mime behaviors, as documented in manual/mod/mod_mime.html

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

modules/http/mod_mime.c

index 1d91d0df496fc944510aae2d6a06eee03a8f38ff..dc36b12218c5248ffba74d01523e676f86883882 100644 (file)
@@ -192,22 +192,10 @@ static void overlay_extension_mappings(apr_pool_t *p,
                 base_info->charset_type = overlay_info->charset_type;
             }
             if (overlay_info->input_filters) {
-                /* We need to concat the filters */
-                if (base_info->input_filters)
-                    base_info->input_filters = apr_pstrcat(p, 
-                                            base_info->input_filters, ";", 
-                                            overlay_info->input_filters, NULL);
-                else
-                    base_info->input_filters = overlay_info->input_filters;
+                base_info->input_filters = overlay_info->input_filters;
             }
             if (overlay_info->output_filters) {
-                /* We need to concat the filters */
-                if (base_info->output_filters)
-                    base_info->output_filters = apr_pstrcat(p, 
-                                           base_info->output_filters, ";", 
-                                           overlay_info->output_filters, NULL);
-                else
-                    base_info->output_filters = overlay_info->output_filters;
+                base_info->output_filters = overlay_info->output_filters;
             }
         }
         else {