From ddcbffb7e573a56b04d61c409581a725f76a6194 Mon Sep 17 00:00:00 2001 From: Oleg Guba Date: Tue, 17 Mar 2020 13:06:14 -0700 Subject: [PATCH] get->post Signed-off-by: Oleg Guba --- docs/root/operations/admin.rst | 2 +- source/server/http/admin.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/root/operations/admin.rst b/docs/root/operations/admin.rst index 38d25e056ed7..3ce7ff5725c6 100644 --- a/docs/root/operations/admin.rst +++ b/docs/root/operations/admin.rst @@ -559,6 +559,6 @@ modify different aspects of the server: * :ref:`HTTP tap filter configuration ` -.. http:get:: /reopen_logs +.. http:post:: /reopen_logs Triggers reopen of all access logs. Behavior is similar to SIGUSR1 handling. diff --git a/source/server/http/admin.cc b/source/server/http/admin.cc index f47bc7c474f9..c6bac704bfb2 100644 --- a/source/server/http/admin.cc +++ b/source/server/http/admin.cc @@ -1457,7 +1457,7 @@ AdminImpl::AdminImpl(const std::string& profile_path, Server::Instance& server) {"/runtime_modify", "modify runtime values", MAKE_ADMIN_HANDLER(handlerRuntimeModify), false, true}, {"/reopen_logs", "reopen access logs", MAKE_ADMIN_HANDLER(handlerReopenLogs), false, - false}, + true}, }, date_provider_(server.dispatcher().timeSource()), admin_filter_chain_(std::make_shared()) {}