From: Jim Jagielski Date: Mon, 11 Jan 2016 13:06:03 +0000 (+0000) Subject: per rplum suggestion. thx! X-Git-Tag: 2.5.0-alpha~2444 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d1c307f15a7869a0360a2fea25438c410278e5e1;p=apache per rplum suggestion. thx! git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1724017 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy.c b/modules/proxy/mod_proxy.c index 90ae6189f6..901581bf53 100644 --- a/modules/proxy/mod_proxy.c +++ b/modules/proxy/mod_proxy.c @@ -43,6 +43,17 @@ APR_DECLARE_OPTIONAL_FN(char *, ssl_var_lookup, */ static APR_OPTIONAL_FN_TYPE(set_worker_hc_param) *set_worker_hc_param_f = NULL; +hcmethods_t hcmethods[] = { + {NONE, "NONE"}, + {TCP, "TCP"}, + {OPTIONS, "OPTIONS"}, + {HEAD, "HEAD"}, + {GET, "GET"}, + {CPING, "CPING"}, + {PROVIDER, "PROVIDER"}, + {EOT, NULL} +}; + static const char * const proxy_id = "proxy"; apr_global_mutex_t *proxy_mutex = NULL; diff --git a/modules/proxy/mod_proxy.h b/modules/proxy/mod_proxy.h index 78b2e885a7..b9aadf23bd 100644 --- a/modules/proxy/mod_proxy.h +++ b/modules/proxy/mod_proxy.h @@ -84,16 +84,7 @@ typedef struct { char *name; } hcmethods_t; -static hcmethods_t hcmethods[] = { - {NONE, "NONE"}, - {TCP, "TCP"}, - {OPTIONS, "OPTIONS"}, - {HEAD, "HEAD"}, - {GET, "GET"}, - {CPING, "CPING"}, - {PROVIDER, "PROVIDER"}, - {EOT, NULL} -}; +extern hcmethods_t hcmethods[]; #define BALANCER_PREFIX "balancer://"