diff OrthancFramework/Sources/JobsEngine/JobsRegistry.cpp @ 4805:0a38000b086d

Archive jobs response now contains a header Content-Disposition:filename='archive.zip'
author Alain Mazy <am@osimis.io>
date Tue, 09 Nov 2021 09:51:14 +0100
parents a046e91cc76f
children 7053502fbf97
line wrap: on
line diff
--- a/OrthancFramework/Sources/JobsEngine/JobsRegistry.cpp	Thu Oct 28 13:05:56 2021 +0200
+++ b/OrthancFramework/Sources/JobsEngine/JobsRegistry.cpp	Tue Nov 09 09:51:14 2021 +0100
@@ -650,6 +650,7 @@
 
   bool JobsRegistry::GetJobOutput(std::string& output,
                                   MimeType& mime,
+                                  std::string& filename,
                                   const std::string& job,
                                   const std::string& key)
   {
@@ -668,7 +669,7 @@
 
       if (handler.GetState() == JobState_Success)
       {
-        return handler.GetJob().GetOutput(output, mime, key);
+        return handler.GetJob().GetOutput(output, mime, filename, key);
       }
       else
       {