summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-02-10 18:18:30 +0100
committerRoland Reichwein <mail@reichwein.it>2023-02-10 18:18:30 +0100
commitedf7f06cdaf916ff9fca0864e14b6fbb476b641b (patch)
tree783c84dae0b04085246ea0ef3f60767019171a91
parentaf25176abebccd470937360f5d42ff4ed838118e (diff)
Added PDF mime type
-rw-r--r--mime.cpp1
-rw-r--r--tempfile.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/mime.cpp b/mime.cpp
index 172a004..b8367ee 100644
--- a/mime.cpp
+++ b/mime.cpp
@@ -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";
diff --git a/tempfile.h b/tempfile.h
index 4f0bbc8..8bbda31 100644
--- a/tempfile.h
+++ b/tempfile.h
@@ -6,6 +6,7 @@
namespace Reichwein {
+// removing path, recursively, via RAII
class EXPORT Tempfile
{
std::filesystem::path m_path;