Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,14 @@ int BlockSigpipeResult = BlockSigpipe();

#endif // IGNORE_SIGPIPE

#if CURL_AT_LEAST_VERSION(8, 16, 0)
using CurlProxyType = long;
#else
using CurlProxyType = curl_proxytype;
#endif

// To avoid static_cast and possible values changes in CURL
curl_proxytype ToCurlProxyType(olp::http::NetworkProxySettings::Type type) {
CurlProxyType ToCurlProxyType(olp::http::NetworkProxySettings::Type type) {
using ProxyType = olp::http::NetworkProxySettings::Type;
switch (type) {
case ProxyType::HTTP:
Expand Down
Loading