# HG changeset patch # User Sebastien Jodogne # Date 1355051671 -3600 # Node ID 098661837a964f03c4593df264fc1cb8995a25d6 # Parent c0fb3d09c84979387a3f5765cefe641ca85afc13 fix diff -r c0fb3d09c849 -r 098661837a96 Core/HttpServer/FilesystemHttpSender.cpp --- 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()