Mercurial > hg > orthanc
diff Core/HttpServer/HttpFileSender.cpp @ 2906:2a504fef4ed7
AutodetectMimeType() now using boost::filesystem
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Oct 2018 12:29:55 +0100 |
parents | ae20fccdd867 |
children | 4e43e67f8ecf |
line wrap: on
line diff
--- a/Core/HttpServer/HttpFileSender.cpp Tue Oct 30 11:55:23 2018 +0100 +++ b/Core/HttpServer/HttpFileSender.cpp Tue Oct 30 12:29:55 2018 +0100 @@ -36,6 +36,7 @@ #include "../OrthancException.h" #include "../Toolbox.h" +#include "../SystemToolbox.h" #include <boost/lexical_cast.hpp> @@ -47,7 +48,7 @@ if (contentType_.empty()) { - contentType_ = Toolbox::AutodetectMimeType(filename); + contentType_ = SystemToolbox::AutodetectMimeType(filename); } }