comparison 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
comparison
equal deleted inserted replaced
2905:ae20fccdd867 2906:2a504fef4ed7
34 #include "../PrecompiledHeaders.h" 34 #include "../PrecompiledHeaders.h"
35 #include "HttpFileSender.h" 35 #include "HttpFileSender.h"
36 36
37 #include "../OrthancException.h" 37 #include "../OrthancException.h"
38 #include "../Toolbox.h" 38 #include "../Toolbox.h"
39 #include "../SystemToolbox.h"
39 40
40 #include <boost/lexical_cast.hpp> 41 #include <boost/lexical_cast.hpp>
41 42
42 namespace Orthanc 43 namespace Orthanc
43 { 44 {
45 { 46 {
46 filename_ = filename; 47 filename_ = filename;
47 48
48 if (contentType_.empty()) 49 if (contentType_.empty())
49 { 50 {
50 contentType_ = Toolbox::AutodetectMimeType(filename); 51 contentType_ = SystemToolbox::AutodetectMimeType(filename);
51 } 52 }
52 } 53 }
53 54
54 55
55 bool HttpFileSender::HasContentFilename(std::string& filename) 56 bool HttpFileSender::HasContentFilename(std::string& filename)