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/experimental mod_example.c
Date Mon, 06 Aug 2001 21:36:32 GMT
trawick     01/08/06 14:36:32

  Modified:    modules/experimental mod_example.c
  Log:
  a couple of hacks to mod_example to get it to behave a little better:
  
  1) return DECLINED instead of OK from the quick_handler so we get
     some output
  
  2) don't install x_fixer_upper() as a create_request handler; otherwise
     we segfault since r->per_dir_config hasn't been initialized yet
  
  Revision  Changes    Path
  1.25      +4 -2      httpd-2.0/modules/experimental/mod_example.c
  
  Index: mod_example.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_example.c,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- mod_example.c	2001/08/06 13:46:48	1.24
  +++ mod_example.c	2001/08/06 21:36:32	1.25
  @@ -988,6 +988,9 @@
   }
   
   /*
  + * XXX fix my comment!!!!!!  this sounds like the comment for a fixup
  + *     handler
  + *
    * This routine is called to perform any module-specific fixing of header
    * fields, et cetera.  It is invoked just before any content-handler.
    *
  @@ -1004,7 +1007,7 @@
        * Log the call and exit.
        */
       trace_add(r->server, NULL, cfg, "x_post_config()");
  -    return OK;
  +    return DECLINED;
   }
   
   /*
  @@ -1248,7 +1251,6 @@
       ap_hook_log_transaction(x_logger, NULL, NULL, APR_HOOK_MIDDLE);
       ap_hook_http_method(x_http_method, NULL, NULL, APR_HOOK_MIDDLE);
       ap_hook_default_port(x_default_port, NULL, NULL, APR_HOOK_MIDDLE);
  -    ap_hook_create_request(x_fixer_upper, NULL, NULL, APR_HOOK_MIDDLE);
       ap_hook_translate_name(x_translate_handler, NULL, NULL, APR_HOOK_MIDDLE);
       ap_hook_check_user_id(x_check_user_id, NULL, NULL, APR_HOOK_MIDDLE);
       ap_hook_fixups(x_fixer_upper, NULL, NULL, APR_HOOK_MIDDLE);
  
  
  

Mime
View raw message