szaszm commented on code in PR #1494:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1494#discussion_r1085471221
##########
extensions/http-curl/protocols/RESTSender.cpp:
##########
@@ -162,6 +162,7 @@ C2Payload RESTSender::sendPayload(const std::string& url,
const Direction direct
if (payload.getOperation() == Operation::TRANSFER) {
auto read =
std::make_unique<utils::HTTPReadCallback>(std::numeric_limits<size_t>::max());
client.setReadCallback(std::move(read));
+ client.setRequestHeader("Accept",
"application/vnd.minifi-c2+json;version=1, text/yml");
Review Comment:
Is this compatible with the NiFi C2 service? (see the issue in the comment a
few lines below, https://issues.apache.org/jira/browse/NIFI-10535)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]