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

This commit is contained in:
Jordan 2018-11-05 17:15:58 +08:00 committed by Yiyu He
parent 0251b38a84
commit bc81ca9414

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