mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-18 04:38:50 +08:00
fix: middleware errors
This commit is contained in:
@@ -12,7 +12,7 @@ const middleware: MiddlewareHandler = async (ctx, next) => {
|
||||
|
||||
{
|
||||
const debug = getDebugInfo();
|
||||
if (ctx.res.headers.get('X-Koa-Redis-Cache') || ctx.res.headers.get('X-Koa-Memory-Cache')) {
|
||||
if (ctx.res.headers.get('RSSHub-Cache-Status')) {
|
||||
debug.hitCache++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user