From 1763484f9e883f86e12d0ec5b0cb89c8569fc36f Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 8 May 2020 12:49:10 +0200 Subject: Minor fixes --- Makefile | 3 ++- debian/changelog | 6 ++++++ plugins/cgi/cgi.cpp | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 349413d..2e3f006 100644 --- a/Makefile +++ b/Makefile @@ -139,7 +139,7 @@ install: # misc --------------------------------------------------- deb: # build binary deb package - dpkg-buildpackage -us -uc -rfakeroot + dpkg-buildpackage -rfakeroot deb-src: dh_clean @@ -148,6 +148,7 @@ deb-src: $(DISTROS): deb-src sudo pbuilder build --basetgz /var/cache/pbuilder/$@.tgz --buildresult result/$@ ../webserver_$(VERSION).dsc + debsign result/$@/webserver_$(VERSION)_amd64.changes debs: $(DISTROS) diff --git a/debian/changelog b/debian/changelog index 41f2393..7f7ebb9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +webserver (1.5) unstable; urgency=medium + + * Minor fixes + + -- Roland Reichwein Fri, 08 May 2020 11:39:09 +0200 + webserver (1.4) unstable; urgency=medium * Added redirect plugin diff --git a/plugins/cgi/cgi.cpp b/plugins/cgi/cgi.cpp index 75e401e..0824d67 100644 --- a/plugins/cgi/cgi.cpp +++ b/plugins/cgi/cgi.cpp @@ -56,7 +56,7 @@ namespace { return std::string{}; return path.string().substr(pos); }(); - if(iequals(ext, ".htm")) return "text/html"; // TODO: unordered_map + if(iequals(ext, ".htm")) return "text/html"; if(iequals(ext, ".html")) return "text/html"; if(iequals(ext, ".php")) return "text/html"; if(iequals(ext, ".css")) return "text/css"; -- cgit v1.2.3