summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-28 10:19:12 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-28 10:19:12 +0100
commit846b733fac9861c741b9faa831468399149049f5 (patch)
treefdc7ae4aa28d66412d96e2e8baab0dec6df8cdb7
parent2fd0bb52f38f243c76fbbd8a85efe781c5f599c4 (diff)
Added MIME type application/wasm; Added Reichwein::XML::plain_xml
-rw-r--r--Makefile5
-rw-r--r--debian/changelog2
-rw-r--r--mime.cpp1
3 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bb5033f..cb0e8a8 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,8 @@ PROGSRC=\
process.cpp \
stringhelper.cpp \
tempfile.cpp \
- url.cpp
+ url.cpp \
+ xml.cpp
SRC=$(PROGSRC)
HEADERS=$(PROGSRC:.cpp=.h) archive.h
@@ -118,6 +119,8 @@ stringhelper.cpp \
stringhelper.h \
tempfile.cpp \
tempfile.h \
+xml.cpp \
+xml.h \
tests/Makefile \
tests/test-archive.cpp \
tests/test-base64.cpp \
diff --git a/debian/changelog b/debian/changelog
index ba1600d..5b59a31 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
libreichwein (1.3) UNRELEASED; urgency=medium
* Fixed upload in Makefile
+ * Added MIME type application/wasm
+ * Added Reichwein::XML::plain_xml()
-- Roland Reichwein <mail@reichwein.it> Sat, 14 Jan 2023 12:41:39 +0100
diff --git a/mime.cpp b/mime.cpp
index b28cb9d..172a004 100644
--- a/mime.cpp
+++ b/mime.cpp
@@ -33,6 +33,7 @@ std::string Reichwein::Mime::mime_type(const std::string& path)
if(boost::algorithm::iequals(ext, ".tif")) return "image/tiff";
if(boost::algorithm::iequals(ext, ".svg")) return "image/svg+xml";
if(boost::algorithm::iequals(ext, ".svgz")) return "image/svg+xml";
+ if(boost::algorithm::iequals(ext, ".wasm")) return "application/wasm";
return "application/text";
}