summaryrefslogtreecommitdiffhomepage
path: root/plugins/webbox/webbox.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-05-11 08:48:10 +0200
committerRoland Reichwein <mail@reichwein.it>2020-05-11 08:48:10 +0200
commit6191504cbcefd0bf73cef7855ccee4553d9f761f (patch)
treebc96bc764e7bf2860f21422c58d51b0b7d88cdb7 /plugins/webbox/webbox.cpp
parent09781f62d0357636e1e4065331a5786a4262e555 (diff)
webbox: Use version of webserver
Diffstat (limited to 'plugins/webbox/webbox.cpp')
-rw-r--r--plugins/webbox/webbox.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/webbox/webbox.cpp b/plugins/webbox/webbox.cpp
index 53322b5..7de431a 100644
--- a/plugins/webbox/webbox.cpp
+++ b/plugins/webbox/webbox.cpp
@@ -29,7 +29,6 @@ namespace pt = boost::property_tree;
namespace {
- static const std::string PROGRAMVERSION{"Webbox 2.0"};
static const std::string DOWNLOAD_FILENAME{"webbox-download.zip"};
// STATIC_HTML_TARGET: no leading slash because comparision is done with relative path;
@@ -391,7 +390,7 @@ protected:
virtual std::string start(CommandParameters& p)
{
p.m_SetResponseHeader("content_type", "text/plain");
- return PROGRAMVERSION + "<br/>(C) 2020 <a href=\"https://www.reichwein.it/\">Reichwein.IT</a>";
+ return p.m_GetServerParam("version") + "<br/>(C) 2020 <a href=\"https://www.reichwein.it/\">Reichwein.IT</a>";
}
};