You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "lordgamez (via GitHub)" <gi...@apache.org> on 2023/05/23 14:32:32 UTC

[GitHub] [nifi-minifi-cpp] lordgamez commented on a diff in pull request #1578: MINIFICPP-2123 Upgrade to curl to v8.1.0

lordgamez commented on code in PR #1578:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1578#discussion_r1202445278


##########
extensions/http-curl/processors/InvokeHTTP.cpp:
##########
@@ -369,6 +369,7 @@ void InvokeHTTP::onTriggerWithClient(const std::shared_ptr<core::ProcessContext>
         client.setRequestHeader("Content-Length", "0");
       } else if (!use_chunked_encoding_) {
         client.setRequestHeader("Content-Length", std::to_string(flow_file->getSize()));
+        client.setPostSize(flow_file->getSize());

Review Comment:
   Content size has to be specified otherwise curl sets chunked encoding automatically: https://github.com/curl/curl/pull/4138



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org