Mercurial > hg > orthanc-transfers
comparison Framework/PullMode/PullJob.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 | 9708addb5a87 |
children | 1e396fb509ca |
comparison
equal
deleted
inserted
replaced
43:c3fefbb11321 | 44:f4e828607f02 |
---|---|
174 { | 174 { |
175 std::string lookup; | 175 std::string lookup; |
176 Orthanc::Toolbox::WriteFastJson(lookup, job_.query_.GetResources()); | 176 Orthanc::Toolbox::WriteFastJson(lookup, job_.query_.GetResources()); |
177 | 177 |
178 Json::Value answer; | 178 Json::Value answer; |
179 if (!DoPostPeer(answer, job_.peers_, job_.peerIndex_, URI_LOOKUP, lookup, job_.maxHttpRetries_)) | 179 std::map<std::string, std::string> headers; |
180 job_.query_.GetHttpHeaders(headers); | |
181 | |
182 if (!DoPostPeer(answer, job_.peers_, job_.peerIndex_, URI_LOOKUP, lookup, job_.maxHttpRetries_, headers)) | |
180 { | 183 { |
181 LOG(ERROR) << "Cannot retrieve the list of instances to pull from peer \"" | 184 LOG(ERROR) << "Cannot retrieve the list of instances to pull from peer \"" |
182 << job_.query_.GetPeer() | 185 << job_.query_.GetPeer() |
183 << "\" (check that it has the transfers accelerator plugin installed)"; | 186 << "\" (check that it has the transfers accelerator plugin installed)"; |
184 return StateUpdate::Failure(); | 187 return StateUpdate::Failure(); |