Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancRestApi/OrthancRestSystem.cpp @ 4819:70d2a97ca8cb openssl-3.x
integration mainline->openssl-3.x
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 25 Nov 2021 13:12:32 +0100 |
parents | c1d6ce00be3f 0a38000b086d |
children | 2e71a08eea15 |
comparison
equal
deleted
inserted
replaced
4785:61da49321754 | 4819:70d2a97ca8cb |
---|---|
682 std::string job = call.GetUriComponent("id", ""); | 682 std::string job = call.GetUriComponent("id", ""); |
683 std::string key = call.GetUriComponent("key", ""); | 683 std::string key = call.GetUriComponent("key", ""); |
684 | 684 |
685 std::string value; | 685 std::string value; |
686 MimeType mime; | 686 MimeType mime; |
687 std::string filename; | |
687 | 688 |
688 if (OrthancRestApi::GetContext(call).GetJobsEngine(). | 689 if (OrthancRestApi::GetContext(call).GetJobsEngine(). |
689 GetRegistry().GetJobOutput(value, mime, job, key)) | 690 GetRegistry().GetJobOutput(value, mime, filename, job, key)) |
690 { | 691 { |
692 if (!filename.empty()) | |
693 { | |
694 call.GetOutput().SetContentFilename(filename.c_str()); | |
695 } | |
696 | |
691 call.GetOutput().AnswerBuffer(value, mime); | 697 call.GetOutput().AnswerBuffer(value, mime); |
692 } | 698 } |
693 else | 699 else |
694 { | 700 { |
695 throw OrthancException(ErrorCode_InexistentItem, | 701 throw OrthancException(ErrorCode_InexistentItem, |