diff options
| author | 2020-12-04 18:18:07 +0000 | |
|---|---|---|
| committer | 2020-12-04 18:44:40 +0000 | |
| commit | 3ab889537fb4c7b5b3507562563eec8211d0cc58 (patch) | |
| tree | 254ba171bfe3c8d0ebd4826cc2d51c7befbd6fc2 /src/modules/m_httpd_config.cpp | |
| parent | Move ban checking to core_channel. (diff) | |
| parent | Improve the logging of service adding/deleting. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_httpd_config.cpp')
| -rw-r--r-- | src/modules/m_httpd_config.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_httpd_config.cpp b/src/modules/m_httpd_config.cpp index 51d90a152..b3a779f5b 100644 --- a/src/modules/m_httpd_config.cpp +++ b/src/modules/m_httpd_config.cpp @@ -41,12 +41,12 @@ class ModuleHttpConfig : public Module, public HTTPRequestEventListener ModResult OnHTTPRequest(HTTPRequest& request) 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"); - std::stringstream buffer; + ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "Handling HTTP request for %s", request.GetPath().c_str()); + std::stringstream buffer; for (auto& [_, tag] : ServerInstance->Config->config_data) { // Show the location of the tag in a comment. |
