adamdebreceni commented on code in PR #1494:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1494#discussion_r1104256875
##########
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:
it works with the nifi c2 service as long as we also specify `text/yml` if
we explicitly specify the `Accept` header, some tests were failing without it,
so the current tests also test compatibility with nifi c2 service
--
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]