comparison Plugin/Plugin.cpp @ 44:f4e828607f02

Added 'SenderTransferID' option that is added as an HTTP header in outgoing requests in PushMode
author Alain Mazy <am@osimis.io>
date Wed, 19 Oct 2022 21:12:57 +0200
parents 44a0430d7899
children b09adb6aa199
comparison
equal deleted inserted replaced
43:c3fefbb11321 44:f4e828607f02
450 450
451 std::string s; 451 std::string s;
452 Orthanc::Toolbox::WriteFastJson(s, lookup); 452 Orthanc::Toolbox::WriteFastJson(s, lookup);
453 453
454 Json::Value answer; 454 Json::Value answer;
455 if (DoPostPeer(answer, peers, query.GetPeer(), URI_PULL, s, context.GetMaxHttpRetries()) && 455 std::map<std::string, std::string> headers;
456 query.GetHttpHeaders(headers);
457
458 if (DoPostPeer(answer, peers, query.GetPeer(), URI_PULL, s, context.GetMaxHttpRetries(), headers) &&
456 answer.type() == Json::objectValue && 459 answer.type() == Json::objectValue &&
457 answer.isMember(KEY_ID) && 460 answer.isMember(KEY_ID) &&
458 answer.isMember(KEY_PATH) && 461 answer.isMember(KEY_PATH) &&
459 answer[KEY_ID].type() == Json::stringValue && 462 answer[KEY_ID].type() == Json::stringValue &&
460 answer[KEY_PATH].type() == Json::stringValue) 463 answer[KEY_PATH].type() == Json::stringValue)