summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2021-01-07 18:16:19 +0100
committerYann Ylavic <ylavic@apache.org>2021-01-07 18:16:19 +0100
commit31c04cd17ffc2c4512076e522aff46c390bc2084 (patch)
treeb2f29f22ecbc6b84a5a2792c23ccea8dc3e41a56 /modules
parentmod_proxy_http: follow up to r1885239: fix *is_ssl for wss scheme. (diff)
downloadapache2-31c04cd17ffc2c4512076e522aff46c390bc2084.tar.xz
apache2-31c04cd17ffc2c4512076e522aff46c390bc2084.zip
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
Diffstat (limited to 'modules')
-rw-r--r--modules/proxy/mod_proxy_wstunnel.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/modules/proxy/mod_proxy_wstunnel.c b/modules/proxy/mod_proxy_wstunnel.c
index e875029406..caf79e784d 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;
}