httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grega...@locus.apache.org
Subject cvs commit: apache-2.0/src/main http_core.c http_protocol.c
Date Tue, 19 Sep 2000 21:11:02 GMT
gregames    00/09/19 14:11:01

  Modified:    src/main http_core.c http_protocol.c
  Log:
  Fix a bug where errors that happen during early request parsing (like 400
  HTTP_BAD_REQUEST) don't send any error message content to the browser.
  The core_filter wasn't present this early in request parsing, so the output
  went into the bit bucket via r[v]puts->ap_pass_brigade.
  
  The chunking filter takes care of itself nicely, because it is added in
  ap_send_http_header if it's needed.
  
  Revision  Changes    Path
  1.126     +0 -2      apache-2.0/src/main/http_core.c
  
  Index: http_core.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_core.c,v
  retrieving revision 1.125
  retrieving revision 1.126
  diff -u -r1.125 -r1.126
  --- http_core.c	2000/09/19 20:56:07	1.125
  +++ http_core.c	2000/09/19 21:11:00	1.126
  @@ -3146,8 +3146,6 @@
           char *foobar = items[i];
           ap_add_filter(foobar, NULL, r);
       }
  -
  -    ap_add_filter("CORE", NULL, r);
   }
   
   static void register_hooks(void)
  
  
  
  1.129     +2 -0      apache-2.0/src/main/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_protocol.c,v
  retrieving revision 1.128
  retrieving revision 1.129
  diff -u -r1.128 -r1.129
  --- http_protocol.c	2000/09/18 19:30:23	1.128
  +++ http_protocol.c	2000/09/19 21:11:01	1.129
  @@ -1200,6 +1200,8 @@
       r->status          = HTTP_REQUEST_TIME_OUT;  /* Until we get a request */
       r->the_request     = NULL;
   
  +    ap_add_filter("CORE", NULL, r);
  +
   #ifdef APACHE_XLATE
       r->rrx = apr_pcalloc(p, sizeof(struct ap_rr_xlate));
       ap_set_content_xlate(r, 0, ap_locale_from_ascii);
  
  
  

Mime
View raw message