mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-19 06:38:55 +08:00
fix: middleware errors
This commit is contained in:
@@ -19,7 +19,7 @@ export const errorHandler: ErrorHandler = (error, ctx) => {
|
||||
}
|
||||
|
||||
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++;
|
||||
setDebugInfo(debug);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user