diff options
| author | 2022-01-12 17:45:40 +0000 | |
|---|---|---|
| committer | 2022-01-12 17:45:40 +0000 | |
| commit | ec37d6bb313f1c15df000fc635e0f2693209ddc7 (patch) | |
| tree | c0724d1173d66dc502f63508b236caf9ffa97a65 /src/modules/m_httpd_stats.cpp | |
| parent | Fix ssl_openssl on OpenSSL 1.0. (diff) | |
Fix accessing the /stats/general and /stats/users sub-routes.
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 1c8b80dbe..f0b8ce5e6 100644 --- a/src/modules/m_httpd_stats.cpp +++ b/src/modules/m_httpd_stats.cpp @@ -425,7 +425,7 @@ class ModuleHttpStats : public Module, public HTTPRequestEventListener 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()); |
