diff --git a/src/IO/HTTPCommon.cpp b/src/IO/HTTPCommon.cpp index 6a3ebb97734..d12aa10fe6a 100644 --- a/src/IO/HTTPCommon.cpp +++ b/src/IO/HTTPCommon.cpp @@ -120,7 +120,7 @@ namespace session->setProxyHost(proxy_host); session->setProxyPort(proxy_port); -#if !defined(ARCADIA_BUILD) +#if !defined(ARCADIA_BUILD) && defined(POCO_CLICKHOUSE_PATCH) session->setProxyProtocol(proxy_scheme); /// Turn on tunnel mode if proxy scheme is HTTP while endpoint scheme is HTTPS.