diff options
-rw-r--r-- | mime.cpp | 1 | ||||
-rw-r--r-- | tempfile.h | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -27,6 +27,7 @@ std::string Reichwein::Mime::mime_type(const std::string& path) if(boost::algorithm::iequals(ext, ".jpeg")) return "image/jpeg"; if(boost::algorithm::iequals(ext, ".jpg")) return "image/jpeg"; if(boost::algorithm::iequals(ext, ".gif")) return "image/gif"; + if(boost::algorithm::iequals(ext, ".pdf")) return "application/pdf"; if(boost::algorithm::iequals(ext, ".bmp")) return "image/bmp"; if(boost::algorithm::iequals(ext, ".ico")) return "image/vnd.microsoft.icon"; if(boost::algorithm::iequals(ext, ".tiff")) return "image/tiff"; @@ -6,6 +6,7 @@ namespace Reichwein { +// removing path, recursively, via RAII class EXPORT Tempfile { std::filesystem::path m_path; |