diff Core/HttpServer/FilesystemHttpHandler.cpp @ 3023:c9c2faf76bec

replaced 'var' by 'let' in Orthanc Explorer's JavaScript
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 17 Dec 2018 10:22:51 +0100
parents 9d277f8ad698
children 4e43e67f8ecf
line wrap: on
line diff
--- a/Core/HttpServer/FilesystemHttpHandler.cpp	Sat Dec 15 16:29:50 2018 +0100
+++ b/Core/HttpServer/FilesystemHttpHandler.cpp	Mon Dec 17 10:22:51 2018 +0100
@@ -163,6 +163,7 @@
     if (SystemToolbox::IsRegularFile(p.string()))
     {
       FilesystemHttpSender sender(p);
+      sender.SetContentType(SystemToolbox::AutodetectMimeType(p.string()));
       output.Answer(sender);   // TODO COMPRESSION
     }
     else if (listDirectoryContent_ &&