From 46c9fcce6424982ce85775e2d1bb204b784ea9f8 Mon Sep 17 00:00:00 2001 From: dr|z3d Date: Sat, 21 Aug 2021 04:13:51 +0000 Subject: [PATCH] Console: refresh on status page set to 5s; add server header response --- daemon/HTTPServer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp index 479810ee..4bdeef99 100644 --- a/daemon/HTTPServer.cpp +++ b/daemon/HTTPServer.cpp @@ -1809,7 +1809,8 @@ namespace http { ShowPageHead (s); if (req.uri.find("summary") != std::string::npos || req.uri.find("commands") != std::string::npos || - (req.uri.find("local_destinations") != std::string::npos && req.uri.find("b32") == std::string::npos)) + (req.uri.find("local_destinations") != std::string::npos && + req.uri.find("b32") == std::string::npos)) res.add_header("Refresh", "10"); if (req.uri.find("page=") != std::string::npos) { HandlePage (req, res, s); @@ -1817,7 +1818,7 @@ namespace http { HandleCommand (req, res, s); } else { ShowStatus (s, true, i2p::http::OutputFormatEnum::forWebConsole); - res.add_header("Refresh", "10"); + res.add_header("Refresh", "5"); } ShowPageTail (s); @@ -2114,6 +2115,7 @@ namespace http { reply.add_header("X-Content-Type-Options", "nosniff"); reply.add_header("X-XSS-Protection", "1; mode=block"); reply.add_header("Content-Type", "text/html"); + reply.add_header("Server", "i2pd " VERSION " webconsole" ); reply.body = content; m_SendBuffer = reply.to_string();