chore: use res instead of this.res (#1271)

master
Jordan 2018-11-05 17:15:58 +08:00 committed by Yiyu He
parent 0251b38a84
commit bc81ca9414
1 changed files with 1 additions and 1 deletions

View File

@ -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() {