Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestArchive.cpp @ 2908:9d277f8ad698
new enumeration: MimeType
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Oct 2018 16:16:07 +0100 |
parents | 251614c2edac |
children | 10c610e80b15 |
comparison
equal
deleted
inserted
replaced
2907:0204af4ece6a | 2908:9d277f8ad698 |
---|---|
82 if (context.GetJobsEngine().GetRegistry().SubmitAndWait | 82 if (context.GetJobsEngine().GetRegistry().SubmitAndWait |
83 (publicContent, job.release(), 0 /* TODO priority */)) | 83 (publicContent, job.release(), 0 /* TODO priority */)) |
84 { | 84 { |
85 // The archive is now created: Prepare the sending of the ZIP file | 85 // The archive is now created: Prepare the sending of the ZIP file |
86 FilesystemHttpSender sender(tmp->GetPath()); | 86 FilesystemHttpSender sender(tmp->GetPath()); |
87 sender.SetContentType("application/zip"); | 87 sender.SetContentType(MimeType_Gzip); |
88 sender.SetContentFilename(filename); | 88 sender.SetContentFilename(filename); |
89 | 89 |
90 // Send the ZIP | 90 // Send the ZIP |
91 call.GetOutput().AnswerStream(sender); | 91 call.GetOutput().AnswerStream(sender); |
92 } | 92 } |