From 2c757c449a8e00fa8accc1445776d75b54bf05fa Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 14 Apr 2025 00:10:26 +0100 Subject: [PATCH] handler: restore static page html --- src/core/Handler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/Handler.cpp b/src/core/Handler.cpp index 00d4825..117d046 100644 --- a/src/core/Handler.cpp +++ b/src/core/Handler.cpp @@ -274,9 +274,9 @@ void CServerHandler::challengeSubmitted(const Pistache::Http::Request& req, Pist } void CServerHandler::serveStop(const Pistache::Http::Request& req, Pistache::Http::ResponseWriter& response) { - static const auto PATH = std::filesystem::canonical(g_pGlobalState->cwd + "/" + g_pConfig->m_config.html_dir).string(); - /* static */ const auto PAGE_INDEX = readFileAsText(PATH + "/index.min.html"); - CTinylates page(PAGE_INDEX); + static const auto PATH = std::filesystem::canonical(g_pGlobalState->cwd + "/" + g_pConfig->m_config.html_dir).string(); + static const auto PAGE_INDEX = readFileAsText(PATH + "/index.min.html"); + CTinylates page(PAGE_INDEX); page.setTemplateRoot(PATH); const auto NONCE = generateNonce();