httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/http http_core.c
Date Thu, 07 Jun 2001 01:14:26 GMT
trawick     01/06/06 18:14:25

  Modified:    modules/http http_core.c
  Log:
  don't add BYTERANGE, CONTENT_LENGTH, or HTTP_HEADER for
  subrequests; they only make sense for main requests and
  internal redirects
  
  Revision  Changes    Path
  1.279     +5 -3      httpd-2.0/modules/http/http_core.c
  
  Index: http_core.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/http/http_core.c,v
  retrieving revision 1.278
  retrieving revision 1.279
  diff -u -r1.278 -r1.279
  --- http_core.c	2001/06/01 17:26:13	1.278
  +++ http_core.c	2001/06/07 01:14:24	1.279
  @@ -297,9 +297,11 @@
   
   static void ap_http_insert_filter(request_rec *r)
   {
  -    ap_add_output_filter("BYTERANGE", NULL, r, r->connection);
  -    ap_add_output_filter("CONTENT_LENGTH", NULL, r, r->connection);
  -    ap_add_output_filter("HTTP_HEADER", NULL, r, r->connection);
  +    if (!r->main) {
  +        ap_add_output_filter("BYTERANGE", NULL, r, r->connection);
  +        ap_add_output_filter("CONTENT_LENGTH", NULL, r, r->connection);
  +        ap_add_output_filter("HTTP_HEADER", NULL, r, r->connection);
  +    }
   }
   
   static void register_hooks(apr_pool_t *p)
  
  
  

Mime
View raw message