adamdebreceni commented on code in PR #1522:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1522#discussion_r1124336355


##########
extensions/http-curl/protocols/RESTSender.cpp:
##########
@@ -162,7 +163,9 @@ 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");
+    if (accepted_formats) {

Review Comment:
   yes, we should not set the accept header explicitly if the 
`accepted_formats` is empty



-- 
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]

Reply via email to