diff --git a/lib/routes/index.js b/lib/routes/index.js index 22fb4f740..15c8e3f92 100644 --- a/lib/routes/index.js +++ b/lib/routes/index.js @@ -59,7 +59,7 @@ module.exports = async (ctx) => { if (!config.debugInfo || config.debugInfo === 'false') { showDebug = false; } else { - showDebug = config.debugInfo === true || config.debugInfo === ctx.query.debug; + showDebug = config.debugInfo === 'true' || config.debugInfo === ctx.query.debug; } const { disallowRobot } = config;