From 6191504cbcefd0bf73cef7855ccee4553d9f761f Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Mon, 11 May 2020 08:48:10 +0200 Subject: webbox: Use version of webserver --- plugins/webbox/webbox.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins') 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 + "
(C) 2020 Reichwein.IT"; + return p.m_GetServerParam("version") + "
(C) 2020 Reichwein.IT"; } }; -- cgit v1.2.3