Skip to content

Commit

Permalink
chore: use res instead of this.res (#1271)
Browse files Browse the repository at this point in the history
  • Loading branch information
mingmingwon authored and dead-horse committed Nov 5, 2018
1 parent 0251b38 commit bc81ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/context.js
Expand Up @@ -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() {
Expand Down

0 comments on commit bc81ca9

Please sign in to comment.