httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/modules/http http_request.c
Date Fri, 05 Apr 2002 20:06:52 GMT
wrowe       02/04/05 12:06:52

  Modified:    modules/http http_request.c
  Log:
    Clean up breakage introduced recently that sent the wrong headers through
    the http_headers output filter.  Now we will always point every filter at
    the 'redirected' request, e.g. the actual error message response rather
    than the request that failed.
  
  Reviewed by: JimJag, Rbb, DougM
  
  Revision  Changes    Path
  1.137     +17 -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.136
  retrieving revision 1.137
  diff -u -r1.136 -r1.137
  --- http_request.c	5 Apr 2002 17:43:03 -0000	1.136
  +++ http_request.c	5 Apr 2002 20:06:52 -0000	1.137
  @@ -305,6 +305,7 @@
   static request_rec *internal_internal_redirect(const char *new_uri,
   					       request_rec *r) {
       int access_status;
  +    ap_filter_t *f;
       request_rec *new = (request_rec *) apr_pcalloc(r->pool,
   						   sizeof(request_rec));
   
  @@ -369,6 +370,22 @@
   
       new->output_filters  = new->proto_output_filters;
       new->input_filters   = new->proto_input_filters;
  +
  +    f = new->input_filters;
  +    while (f) {
  +        if (f->r == r) {
  +            f->r = new;
  +        }
  +        f = f->next;
  +    }
  +
  +    f = new->output_filters;
  +    while (f) {
  +        if (f->r == r) {
  +            f->r = new;
  +        }
  +        f = f->next;
  +    }
   
       ap_add_input_filter("HTTP_IN", NULL, new, new->connection);
   
  
  
  

Mime
View raw message