# HG changeset patch # User Sebastien Jodogne # Date 1548343016 -3600 # Node ID 5cf29046c15989ea324f8c72d1dfcc1a5c3dddda # Parent fc9a4a2dad63f71f4ce29d88fadb9a5871ee360d removed misleading warning diff -r fc9a4a2dad63 -r 5cf29046c159 Core/HttpServer/FilesystemHttpSender.h --- a/Core/HttpServer/FilesystemHttpSender.h Thu Jan 24 10:55:19 2019 +0100 +++ b/Core/HttpServer/FilesystemHttpSender.h Thu Jan 24 16:16:56 2019 +0100 @@ -61,6 +61,13 @@ Initialize(path); } + FilesystemHttpSender(const std::string& path, + MimeType contentType) + { + SetContentType(contentType); + Initialize(path); + } + FilesystemHttpSender(const FilesystemStorage& storage, const std::string& uuid) { diff -r fc9a4a2dad63 -r 5cf29046c159 OrthancServer/OrthancRestApi/OrthancRestArchive.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp Thu Jan 24 10:55:19 2019 +0100 +++ b/OrthancServer/OrthancRestApi/OrthancRestArchive.cpp Thu Jan 24 16:16:56 2019 +0100 @@ -144,8 +144,7 @@ (publicContent, job.release(), priority)) { // The archive is now created: Prepare the sending of the ZIP file - FilesystemHttpSender sender(tmp->GetPath()); - sender.SetContentType(MimeType_Gzip); + FilesystemHttpSender sender(tmp->GetPath(), MimeType_Zip); sender.SetContentFilename(filename); // Send the ZIP