diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-02-10 18:18:30 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-02-10 18:18:30 +0100 |
commit | edf7f06cdaf916ff9fca0864e14b6fbb476b641b (patch) | |
tree | 783c84dae0b04085246ea0ef3f60767019171a91 | |
parent | af25176abebccd470937360f5d42ff4ed838118e (diff) |
Added PDF mime type
-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; |