From bc81ca9414296234c764b7306a19ba72b2e59b52 Mon Sep 17 00:00:00 2001 From: Jordan Date: Mon, 5 Nov 2018 17:15:58 +0800 Subject: [PATCH] chore: use res instead of this.res (#1271) --- lib/context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/context.js b/lib/context.js index 7d80df2..fa5b563 100644 --- a/lib/context.js +++ b/lib/context.js @@ -154,7 +154,7 @@ const proto = module.exports = { const msg = err.expose ? err.message : code; this.status = err.status; this.length = Buffer.byteLength(msg); - this.res.end(msg); + res.end(msg); }, get cookies() {