fixup! fix: omit curlopt options if curl is old (#4675)

This commit is contained in:
Charles Kerr 2023-01-26 16:03:11 -06:00
parent b5339273d0
commit 5a8aab2c2d
1 changed files with 2 additions and 0 deletions

View File

@ -536,8 +536,10 @@ public:
{
(void)curl_easy_setopt(e, CURLOPT_CAINFO, NULL);
(void)curl_easy_setopt(e, CURLOPT_CAPATH, NULL);
#if LIBCURL_VERSION_NUM >= 0x073400 /* 7.52.0 */
(void)curl_easy_setopt(e, CURLOPT_PROXY_SSL_VERIFYHOST, 0L);
(void)curl_easy_setopt(e, CURLOPT_PROXY_SSL_VERIFYPEER, 0L);
#endif
}
else if (!std::empty(curl_ca_bundle))
{