Mercurial > hg > orthanc
diff Core/HttpServer/FilesystemHttpSender.cpp @ 257:098661837a96 Orthanc-0.3.1
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 09 Dec 2012 12:14:31 +0100 |
parents | 5459f05b4f54 |
children | bdd72233b105 |
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()