chore: use res instead of this.res (#1271)
This commit is contained in:
parent
0251b38a84
commit
bc81ca9414
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue