You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2002/04/05 19:43:03 UTC

cvs commit: httpd-2.0/modules/http http_request.c

rbb         02/04/05 09:43:03

  Modified:    modules/http http_request.c
  Log:
  This fixes the mod_autoindex problem of not getting the list of files.
  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
  
  Revision  Changes    Path
  1.136     +5 -0      httpd-2.0/modules/http/http_request.c
  
  Index: http_request.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/http/http_request.c,v
  retrieving revision 1.135
  retrieving revision 1.136
  diff -u -r1.135 -r1.136
  --- http_request.c	29 Mar 2002 08:17:23 -0000	1.135
  +++ http_request.c	5 Apr 2002 17:43:03 -0000	1.136
  @@ -420,6 +420,11 @@
   
       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)