Mercurial > hg > orthanc
diff Core/HttpServer/FilesystemHttpSender.cpp @ 277:58f969933720
merge with Orthanc-0.3.1
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 09 Dec 2012 15:03:17 +0100 |
parents | 098661837a96 |
children | bdd72233b105 |
line wrap: on
line diff
--- a/Core/HttpServer/FilesystemHttpSender.cpp Sun Dec 09 14:45:10 2012 +0100 +++ b/Core/HttpServer/FilesystemHttpSender.cpp Sun Dec 09 15:03:17 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()