From d34ca2d0978112c908d365d7ce7e9343deebc5cb Mon Sep 17 00:00:00 2001 From: Rustam Gamidov Date: Wed, 20 Aug 2025 16:07:33 +0300 Subject: [PATCH] Disable CURL transfer encoding for old versions Otherwise some combinations of server-clients may fail to transfer the data with bad request error and data similar to '"TE" may only be "trailers" in HTTP/2' It has been fixed in CURL 8.12.0 by explicitly stripping TE header from HTTP/2 requests Relates-To: NLAM-55 Signed-off-by: Rustam Gamidov --- olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp b/olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp index 83f518e82..dd4bb6bce 100644 --- a/olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp +++ b/olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp @@ -817,6 +817,9 @@ ErrorCode NetworkCurl::SendImplementation( #if CURL_AT_LEAST_VERSION(7, 21, 0) curl_easy_setopt(curl_handle, CURLOPT_ACCEPT_ENCODING, ""); +#endif + +#if CURL_AT_LEAST_VERSION(8, 12, 0) curl_easy_setopt(curl_handle, CURLOPT_TRANSFER_ENCODING, 1L); #endif