diff Core/HttpServer/FilesystemHttpSender.h @ 3161:5cf29046c159

removed misleading warning
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 24 Jan 2019 16:16:56 +0100
parents 4e43e67f8ecf
children 94f4a18a79cc
line wrap: on
line diff
--- 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)
     {