From a12a7e73f93f1c240b0a2b71c78e398479486cd8 Mon Sep 17 00:00:00 2001 From: asokolov Date: Fri, 9 Nov 2018 16:13:56 +0300 Subject: [PATCH] redirect with webroot --- daemon/HTTPServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp index 0fbd2756..d8dc8719 100644 --- a/daemon/HTTPServer.cpp +++ b/daemon/HTTPServer.cpp @@ -1034,8 +1034,8 @@ namespace http { } s << "SUCCESS: Command accepted

\r\n"; s << "Back to commands list
\r\n"; - // s << "

You will be redirected in 5 seconds"; - // res.add_header("Refresh", "5; url=/?page=commands"); + s << "

You will be redirected in 5 seconds"; + res.add_header("Refresh", std::string("5; url=" + url.path + "?page=commands").c_str()); } void HTTPConnection::SendReply (HTTPRes& reply, std::string& content)