]> granicus.if.org Git - apache/commitdiff
This fixes the mod_autoindex problem of not getting the list of files.
authorRyan Bloom <rbb@apache.org>
Fri, 5 Apr 2002 17:43:03 +0000 (17:43 +0000)
committerRyan Bloom <rbb@apache.org>
Fri, 5 Apr 2002 17:43:03 +0000 (17:43 +0000)
The problem was that the internal_fast_redirect removed the SUB_REQ
filter, but we are still in a sub_request.  The solution is to have the
fast_internal_Redirect function check if we are in a sub_Request and
re-add the filter if we are.
Submitted by: Ryan Bloom, Greg Ames, Jeff Trawick, and Will Rowe

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

modules/http/http_request.c

index 07e4de542cc6027d58eb8060b45b8e7a7e87e3c5..7d3f82e3f1938d8398872835dd4952b4a3ae4e3d 100644 (file)
@@ -420,6 +420,11 @@ AP_DECLARE(void) ap_internal_fast_redirect(request_rec *rr, request_rec *r)
 
     r->output_filters = rr->output_filters;
     r->input_filters = rr->input_filters;
+
+    if (r->main) {
+        ap_add_output_filter_handle(ap_subreq_core_filter_handle,
+                                    NULL, r, r->connection);
+    }
 }
 
 AP_DECLARE(void) ap_internal_redirect(const char *new_uri, request_rec *r)