]> granicus.if.org Git - apache/commitdiff
disabling mod_example ap_hook_{http_method,default_port}
authorDoug MacEachern <dougm@apache.org>
Mon, 15 Oct 2001 23:14:11 +0000 (23:14 +0000)
committerDoug MacEachern <dougm@apache.org>
Mon, 15 Oct 2001 23:14:11 +0000 (23:14 +0000)
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

modules/experimental/mod_example.c

index b72fdef648d5b113400ad2f5dc96cd068b63045c..755e637eeb3eedaa688ca186034e7e825f31014d 100644 (file)
@@ -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);