comparison OrthancServer/OrthancRestApi/OrthancRestArchive.cpp @ 3161:5cf29046c159

removed misleading warning
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 24 Jan 2019 16:16:56 +0100
parents beeeb6096f27
children 6fd38327e777
comparison
equal deleted inserted replaced
3160:fc9a4a2dad63 3161:5cf29046c159
142 Json::Value publicContent; 142 Json::Value publicContent;
143 if (context.GetJobsEngine().GetRegistry().SubmitAndWait 143 if (context.GetJobsEngine().GetRegistry().SubmitAndWait
144 (publicContent, job.release(), priority)) 144 (publicContent, job.release(), priority))
145 { 145 {
146 // The archive is now created: Prepare the sending of the ZIP file 146 // The archive is now created: Prepare the sending of the ZIP file
147 FilesystemHttpSender sender(tmp->GetPath()); 147 FilesystemHttpSender sender(tmp->GetPath(), MimeType_Zip);
148 sender.SetContentType(MimeType_Gzip);
149 sender.SetContentFilename(filename); 148 sender.SetContentFilename(filename);
150 149
151 // Send the ZIP 150 // Send the ZIP
152 output.AnswerStream(sender); 151 output.AnswerStream(sender);
153 } 152 }