summaryrefslogtreecommitdiff
path: root/lib/cfilters.c
diff options
context:
space:
mode:
authorStefan Eissing <stefan@eissing.org>2022-11-17 10:29:50 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-11-17 13:45:36 +0100
commit7a19dd8a814d094cede7ca7b03e0e8b7fe7d4def (patch)
tree8e6cd8f4206ba2bb2b50c3bc963929705e1daa25 /lib/cfilters.c
parent14d5589032d5330a3d8716a9f59b85951514412d (diff)
downloadcurl-7a19dd8a814d094cede7ca7b03e0e8b7fe7d4def.tar.gz
proxy: haproxy filter is only available when PROXY and HTTP are
Closes #9935
Diffstat (limited to 'lib/cfilters.c')
-rw-r--r--lib/cfilters.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cfilters.c b/lib/cfilters.c
index 7c439cd63..5b5b08ecf 100644
--- a/lib/cfilters.c
+++ b/lib/cfilters.c
@@ -329,13 +329,13 @@ CURLcode Curl_cfilter_setup(struct Curl_easy *data,
(void)ssl_mode;
#endif /* USE_SSL */
-#ifndef CURL_DISABLE_PROXY
+#if !defined(CURL_DISABLE_PROXY) && !defined(CURL_DISABLE_HTTP)
if(data->set.haproxyprotocol) {
result = Curl_cfilter_haproxy_add(data, conn, sockindex);
if(result)
goto out;
}
-#endif /* !CURL_DISABLE_PROXY */
+#endif /* !CURL_DISABLE_PROXY && !CURL_DISABLE_HTTP */
}
DEBUGASSERT(conn->cfilter[sockindex]);