Skip to content

Commit bc81ca9

Browse files
mingmingwondead-horse
authored andcommitted
chore: use res instead of this.res (#1271)
1 parent 0251b38 commit bc81ca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/context.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ const proto = module.exports = {
154154
const msg = err.expose ? err.message : code;
155155
this.status = err.status;
156156
this.length = Buffer.byteLength(msg);
157-
this.res.end(msg);
157+
res.end(msg);
158158
},
159159

160160
get cookies() {

0 commit comments

Comments
 (0)