From: Yann Ylavic Date: Thu, 7 Jan 2021 17:16:19 +0000 (+0000) Subject: mod_proxy_wstunnel: follow up to r1885239: use ap_find_linked_module(). X-Git-Tag: 2.5.0-alpha2-ci-test-only~1060 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=31c04cd17ffc2c4512076e522aff46c390bc2084;p=thirdparty%2Fapache%2Fhttpd.git mod_proxy_wstunnel: follow up to r1885239: use ap_find_linked_module(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1885244 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_wstunnel.c b/modules/proxy/mod_proxy_wstunnel.c index e8750294062..caf79e784d0 100644 --- a/modules/proxy/mod_proxy_wstunnel.c +++ b/modules/proxy/mod_proxy_wstunnel.c @@ -452,17 +452,8 @@ static const char * proxyws_set_asynch_delay(cmd_parms *cmd, void *conf, const c static int proxy_wstunnel_post_config(apr_pool_t *pconf, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s) { - fallback_to_mod_proxy_http = 0; - if (ap_state_query(AP_SQ_MAIN_STATE) != AP_SQ_MS_CREATE_PRE_CONFIG) { - apr_size_t i = 0; - const module *mod; - while ((mod = ap_loaded_modules[i++])) { - if (strcmp(mod->name, "mod_proxy_http.c") == 0) { - fallback_to_mod_proxy_http = 1; - break; - } - } - } + fallback_to_mod_proxy_http = + (ap_find_linked_module("mod_proxy_http.c") != NULL); return OK; }