diff options
| author | Stefan Boberg <[email protected]> | 2021-10-03 17:00:52 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-10-03 17:00:52 +0200 |
| commit | 5ad46537b07f1bf30af58c8cc2b85b64e45ee4c3 (patch) | |
| tree | 74eff489cb73731d20401703f1845a4c6d52c8ce /zenserver/cache/structuredcache.cpp | |
| parent | http: Added support for specifying response content-type by means of suffixes... (diff) | |
| download | zen-5ad46537b07f1bf30af58c8cc2b85b64e45ee4c3.tar.xz zen-5ad46537b07f1bf30af58c8cc2b85b64e45ee4c3.zip | |
structurec cache: Added ad hoc special case for /z$/stats.json request
Diffstat (limited to 'zenserver/cache/structuredcache.cpp')
| -rw-r--r-- | zenserver/cache/structuredcache.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zenserver/cache/structuredcache.cpp b/zenserver/cache/structuredcache.cpp index 8ab0276c5..d7b409c6c 100644 --- a/zenserver/cache/structuredcache.cpp +++ b/zenserver/cache/structuredcache.cpp @@ -200,8 +200,10 @@ HttpStructuredCacheService::HandleRequest(HttpServerRequest& Request) { std::string_view Key = Request.RelativeUri(); - if (Key.empty()) + if (Key.empty() || Key == "stats.json") { + $.Cancel(); + return HandleStatusRequest(Request); } |