Skip to content

Commit d4a3d09

Browse files
Disable CURL transfer encoding for old versions (#1632)
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 <[email protected]>
1 parent de75039 commit d4a3d09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

olp-cpp-sdk-core/src/http/curl/NetworkCurl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,9 @@ ErrorCode NetworkCurl::SendImplementation(
817817

818818
#if CURL_AT_LEAST_VERSION(7, 21, 0)
819819
curl_easy_setopt(curl_handle, CURLOPT_ACCEPT_ENCODING, "");
820+
#endif
821+
822+
#if CURL_AT_LEAST_VERSION(8, 12, 0)
820823
curl_easy_setopt(curl_handle, CURLOPT_TRANSFER_ENCODING, 1L);
821824
#endif
822825

0 commit comments

Comments
 (0)