Skip to content

Commit 25ffe4f

Browse files
Disable CURL transfer encoding
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' Relates-To: NLAM-55 Signed-off-by: Rustam Gamidov <[email protected]>
1 parent 7c47304 commit 25ffe4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ ErrorCode NetworkCurl::SendImplementation(
817817

818818
#if CURL_AT_LEAST_VERSION(7, 21, 0)
819819
curl_easy_setopt(curl_handle, CURLOPT_ACCEPT_ENCODING, "");
820-
curl_easy_setopt(curl_handle, CURLOPT_TRANSFER_ENCODING, 1L);
820+
curl_easy_setopt(curl_handle, CURLOPT_TRANSFER_ENCODING, 0L);
821821
#endif
822822

823823
#if CURL_AT_LEAST_VERSION(7, 25, 0)

0 commit comments

Comments
 (0)