ModResult OnHTTPRequest(HTTPRequest& request) CXX11_OVERRIDE
{
- if ((request.GetPath() != "/config") && (request.GetPath() != "/config/"))
+ if (request.GetPath() != "/config")
return MOD_RES_PASSTHRU;
- ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Handling request for the HTTP /config route");
+ ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Handling HTTP request for %s", request.GetPath().c_str());
std::stringstream buffer;
ConfigDataHash& config = ServerInstance->Config->config_data;
Version GetVersion() CXX11_OVERRIDE
{
- return Version("Allows for the server configuration to be viewed over HTTP via m_httpd", VF_VENDOR);
+ return Version("Allows the server configuration to be viewed over HTTP via the /config path.", VF_VENDOR);
}
};