Mercurial > hg > orthanc
diff OrthancServer/OrthancRestApi/OrthancRestArchive.cpp @ 3240:e44e0127e553
Fix issue #134 (/patient/modify gives 500, should really be 400)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 15 Feb 2019 17:26:45 +0100 |
parents | 6fd38327e777 |
children | 94f4a18a79cc |
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp Fri Feb 15 16:38:12 2019 +0100 +++ b/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp Fri Feb 15 17:26:45 2019 +0100 @@ -147,8 +147,9 @@ job->SetSynchronousTarget(tmp); Json::Value publicContent; - if (context.GetJobsEngine().GetRegistry().SubmitAndWait - (publicContent, job.release(), priority)) + context.GetJobsEngine().GetRegistry().SubmitAndWait + (publicContent, job.release(), priority); + { // The archive is now created: Prepare the sending of the ZIP file FilesystemHttpSender sender(tmp->GetPath(), MimeType_Zip); @@ -157,10 +158,6 @@ // Send the ZIP output.AnswerStream(sender); } - else - { - output.SignalError(HttpStatus_500_InternalServerError); - } } else {