From 22c1c9ca720a68443ae549571ecd6987f0247e40 Mon Sep 17 00:00:00 2001 From: Andrey Kashcheev Date: Thu, 15 May 2025 15:00:19 +0200 Subject: [PATCH] Do not enforce HTTP/2 for cURL-based network Let the cURL itself decide Relates-To: DATASDK-74 Signed-off-by: Andrey Kashcheev --- olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp b/olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp index cc5bcfd50..7590296f2 100644 --- a/olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp +++ b/olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp @@ -718,9 +718,6 @@ ErrorCode NetworkCurl::SendImplementation( curl_easy_setopt(curl_handle, CURLOPT_VERBOSE, 0L); } - // Request HTTP/2 when supported by the server (via ALPN negotiation) - curl_easy_setopt(curl_handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); - curl_easy_setopt(curl_handle, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2); const std::string& url = request.GetUrl();