changeset 257:098661837a96 Orthanc-0.3.1

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 09 Dec 2012 12:14:31 +0100
parents c0fb3d09c849
children 6f4591ba5051
files Core/HttpServer/FilesystemHttpSender.cpp
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Core/HttpServer/FilesystemHttpSender.cpp	Wed Dec 05 13:55:11 2012 +0100
+++ b/Core/HttpServer/FilesystemHttpSender.cpp	Sun Dec 09 12:14:31 2012 +0100
@@ -40,7 +40,12 @@
   void FilesystemHttpSender::Setup()
   {
     //SetDownloadFilename(path_.filename().string());
+
+#if BOOST_HAS_FILESYSTEM_V3 == 1
     SetContentType(Toolbox::AutodetectMimeType(path_.filename().string()));
+#else
+    SetContentType(Toolbox::AutodetectMimeType(path_.filename()));
+#endif
   }
 
   uint64_t FilesystemHttpSender::GetFileSize()