Commit 57407063 authored by Justin Erenkrantz's avatar Justin Erenkrantz
Browse files

We should be copying the filters as well when we perform the extension merge

(which seems to use a ; syntax).

Try:
AddOutputFilter GZ html  (server-level)
AddOutputFilter Includes html  (directory-level)

Oops.

Without this, when you use mod_gz and go to /foobarnotthere/, the error
page isn't handled by mod_include.  Oooops.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90871 13f79535-47bb-0310-9956-ffa450edef68
parent 74912924
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -191,6 +191,24 @@ static void overlay_extension_mappings(apr_pool_t *p,
            if (overlay_info->charset_type) {
                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;
            }
            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;
            }
        }
        else {
            apr_hash_set(base, key, klen, overlay_info);