Showing
1 changed file
with
1 additions
and
1 deletions
@@ -95,7 +95,7 @@ const render = (route) => { | @@ -95,7 +95,7 @@ const render = (route) => { | ||
95 | return async(req, res, next) => { | 95 | return async(req, res, next) => { |
96 | try { | 96 | try { |
97 | res.setHeader('X-YOHO-Version', pkg.version); | 97 | res.setHeader('X-YOHO-Version', pkg.version); |
98 | - const isDegrade = _.get(req.app.locals.wap, 'webapp.degrade', false); | 98 | + const isDegrade = _.get(req.app.locals.wap, `webapp.${config.appName}-degrade`, false); |
99 | 99 | ||
100 | if (isDegrade) { | 100 | if (isDegrade) { |
101 | return res.send(degradeHtml); | 101 | return res.send(degradeHtml); |
-
Please register or login to post a comment