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/03/07 06:02:53 UTC

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

rbb         02/03/06 21:02:53

  Modified:    modules/http http_core.c
  Log:
  There is no reason to insert the protocol filters in the insert_filters
  phase.  This moves us to inserting the filters in the create_request
  phase.  This makes more sense, because now the protocol filters are attached
  to the request as soon as possible.  Previously, some requests never
  called the insert_filters phase, so they don't get the filters.  Think
  redirects for reqeusts that never call insert_filters.
  
  Revision  Changes    Path
  1.296     +2 -2      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.295
  retrieving revision 1.296
  diff -u -r1.295 -r1.296
  --- http_core.c	4 Mar 2002 05:54:44 -0000	1.295
  +++ http_core.c	7 Mar 2002 05:02:53 -0000	1.296
  @@ -302,7 +302,7 @@
       return OK;
   }
   
  -static void ap_http_insert_filter(request_rec *r)
  +static void http_create_request(request_rec *r)
   {
       if (!r->main && !r->prev) {
           ap_add_output_filter_handle(ap_byterange_filter_handle,
  @@ -321,7 +321,7 @@
       ap_hook_map_to_storage(ap_send_http_trace,NULL,NULL,APR_HOOK_MIDDLE);
       ap_hook_http_method(http_method,NULL,NULL,APR_HOOK_REALLY_LAST);
       ap_hook_default_port(http_port,NULL,NULL,APR_HOOK_REALLY_LAST);
  -    ap_hook_insert_filter(ap_http_insert_filter, NULL, NULL, APR_HOOK_REALLY_LAST);
  +    ap_hook_create_request(http_create_request, NULL, NULL, APR_HOOK_REALLY_LAST);
       ap_http_input_filter_handle =
           ap_register_input_filter("HTTP_IN", ap_http_filter,
                                    AP_FTYPE_HTTP_HEADER);