]> granicus.if.org Git - apache/commitdiff
Get internal redirects working by initializing the output_filters
authorJeff Trawick <trawick@apache.org>
Tue, 19 Sep 2000 23:50:36 +0000 (23:50 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 19 Sep 2000 23:50:36 +0000 (23:50 +0000)
list.  We start over with only core_filter just like a fresh request.
Processing of the new URI will determine what filters (if any) are
appropriate.

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

modules/http/http_request.c

index a4b2fcfb08395a21a6f4ced1a9722dd35a862928..f8c6f5b203a0c07c4dfafca05eafd3d5292f1f96 100644 (file)
@@ -75,6 +75,7 @@
 #include "http_protocol.h"
 #include "http_log.h"
 #include "http_main.h"
+#include "util_filter.h"
 #include "util_charset.h"
 #include "apr_strings.h"
 #include "apr_file_io.h"
@@ -1387,6 +1388,8 @@ static request_rec *internal_internal_redirect(const char *new_uri,
     apr_table_setn(new->subprocess_env, "REDIRECT_STATUS",
        apr_psprintf(r->pool, "%d", r->status));
 
+    ap_add_filter("CORE", NULL, new);
+
     /*
      * XXX: hmm.  This is because mod_setenvif and mod_unique_id really need
      * to do their thing on internal redirects as well.  Perhaps this is a