From: Matteo Nastasi (mop) Date: Wed, 11 Jul 2012 06:06:27 +0000 (+0200) Subject: code cleanup X-Git-Tag: v0.4.0 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=004b0120757aeba396f5d2a4e6e7d01c3a8ec47e;p=mod-proxy-fdpass.git code cleanup --- diff --git a/mod_proxy_fdpass.c b/mod_proxy_fdpass.c index 7a12ba0..34ee2fe 100644 --- a/mod_proxy_fdpass.c +++ b/mod_proxy_fdpass.c @@ -364,12 +364,6 @@ static int proxy_fdpass_handler(request_rec *r, proxy_worker *worker, } } -#if 0 - ap_custom_response(r, 0, "sappo: robiola zero"); - ap_custom_response(r, 200, "sappo: robiola"); - apr_table_clear(r->headers_out); -#endif - if ((headers_out = calloc(CTRL_BUFF_MAX_SZ, 1)) != NULL) { sprintf(headers_out, "The-Request:%s\n", r->the_request); apr_table_do(headers_builder, headers_out, r->headers_in, NULL); @@ -532,23 +526,9 @@ static const proxy_fdpass_flush builtin_flush = NULL }; -#if 0 -static int proxy_fdpass_post_request(proxy_worker *worker, - proxy_balancer *balancer, - request_rec *r, - proxy_server_conf *conf) -{ - apr_table_clear(r->headers_out); - ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, - "proxy: FD: POST"); - -} -#endif - static void ap_proxy_fdpass_register_hooks(apr_pool_t *p) { ap_register_provider(p, PROXY_FDPASS_FLUSHER, "flush", "0", &builtin_flush); - // proxy_hook_post_request(proxy_fdpass_post_request, NULL, NULL, APR_HOOK_FIRST); proxy_hook_scheme_handler(proxy_fdpass_handler, NULL, NULL, APR_HOOK_FIRST); proxy_hook_canon_handler(proxy_fdpass_canon, NULL, NULL, APR_HOOK_FIRST); }