diff options
| author | 2022-01-14 18:49:06 +0000 | |
|---|---|---|
| committer | 2022-01-14 18:49:06 +0000 | |
| commit | abeddc4f83f622b714b3aa5023aae0d14913d07f (patch) | |
| tree | c6ccaf443748db22e2e89ff7ac1a71fc35366bda /src/modules/m_httpd_stats.cpp | |
| parent | Always catch exceptions as a constant reference. (diff) | |
| parent | Fix 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.cpp | 2 |
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()); |
