aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_httpd_stats.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-01-14 18:49:06 +0000
committerGravatar Sadie Powell2022-01-14 18:49:06 +0000
commitabeddc4f83f622b714b3aa5023aae0d14913d07f (patch)
treec6ccaf443748db22e2e89ff7ac1a71fc35366bda /src/modules/m_httpd_stats.cpp
parentAlways catch exceptions as a constant reference. (diff)
parentFix accessing the /stats/general and /stats/users sub-routes. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_httpd_stats.cpp')
-rw-r--r--src/modules/m_httpd_stats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_httpd_stats.cpp b/src/modules/m_httpd_stats.cpp
index e6932c5ff..f5e3b8427 100644
--- a/src/modules/m_httpd_stats.cpp
+++ b/src/modules/m_httpd_stats.cpp
@@ -415,7 +415,7 @@ class ModuleHttpStats final
ModResult HandleRequest(HTTPRequest* http)
{
- if (http->GetPath() != "/stats")
+ if (http->GetPath().compare(0, 6, "/stats"))
return MOD_RES_PASSTHRU;
ServerInstance->Logs.Log(MODNAME, LOG_DEBUG, "Handling HTTP request for %s", http->GetPath().c_str());