diff --git a/api/vercel.ts b/api/vercel.ts index 93f482567..400a58fe4 100644 --- a/api/vercel.ts +++ b/api/vercel.ts @@ -12,6 +12,5 @@ const app = require('../lib/app'); const logger = require('../lib/utils/logger'); logger.info(`🎉 RSSHub is running! Cheers!`); -logger.info('💖 Can you help keep this open source project alive? Please sponsor 👉 https://docs.rsshub.app/sponsor'); module.exports = handle(app); diff --git a/lib/index.ts b/lib/index.ts index 61fbec2f9..b7e93b593 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -8,7 +8,6 @@ const port = config.connect.port; const hostIPList = getLocalhostAddress(); logger.info(`🎉 RSSHub is running on port ${port}! Cheers!`); -logger.info('💖 Can you help keep this open source project alive? Please sponsor 👉 https://docs.rsshub.app/sponsor'); logger.info(`🔗 Local: 👉 http://localhost:${port}`); if (config.listenInaddrAny) { for (const ip of hostIPList) { diff --git a/lib/middleware/header.ts b/lib/middleware/header.ts index 7518a4996..e6f6ef9a1 100644 --- a/lib/middleware/header.ts +++ b/lib/middleware/header.ts @@ -25,7 +25,9 @@ const middleware: MiddlewareHandler = async (ctx, next) => { await next(); - ctx.header('X-RSSHub-Route', ctx.req.routePath); + if (ctx.req.routePath !== '/*') { + ctx.header('X-RSSHub-Route', ctx.req.routePath); + } const data: Data = ctx.get('data'); if (!data || ctx.res.headers.get('ETag')) {