diff --git a/base-auth/app.js b/base-auth/app.js index 0f8a55c..6b2d590 100644 --- a/base-auth/app.js +++ b/base-auth/app.js @@ -6,7 +6,7 @@ var app = module.exports = koa(); app.use(function* (next){ try { - yield* next; + yield next; } catch (err) { if (401 == err.status) { this.status = 401;