From: Doug MacEachern Date: Mon, 15 Oct 2001 23:14:11 +0000 (+0000) Subject: disabling mod_example ap_hook_{http_method,default_port} X-Git-Tag: 2.0.26~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12749e4ff87975c2603ec8fd5c40b645679dfe7a;p=apache disabling mod_example ap_hook_{http_method,default_port} breaks things such as httpd-test when http_method is "foo" PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91475 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/mod_example.c b/modules/experimental/mod_example.c index b72fdef648..755e637eeb 100644 --- a/modules/experimental/mod_example.c +++ b/modules/experimental/mod_example.c @@ -940,6 +940,7 @@ static void x_child_init(apr_pool_t *p, server_rec *s) * server will still call any remaining modules with an handler for this * phase. */ +#if 0 static const char *x_http_method(const request_rec *r) { x_cfg *cfg; @@ -971,6 +972,7 @@ static apr_port_t x_default_port(const request_rec *r) trace_add(r->server, NULL, cfg, "x_post_config()"); return 80; } +#endif /*0*/ /* * This routine is called to perform any module-specific fixing of header @@ -1253,8 +1255,10 @@ static void x_register_hooks(apr_pool_t *p) ap_hook_post_read_request(x_post_read_request, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_log_transaction(x_logger, NULL, NULL, APR_HOOK_MIDDLE); +#if 0 ap_hook_http_method(x_http_method, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_default_port(x_default_port, NULL, NULL, APR_HOOK_MIDDLE); +#endif 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);