chore: use this.res.socket insteadof this.ctx.req.socket (#1177)
prefer a shorter path to the object
This commit is contained in:
parent
45903f228a
commit
148f26f630
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ module.exports = {
|
|||
*/
|
||||
|
||||
get socket() {
|
||||
return this.ctx.req.socket;
|
||||
return this.res.socket;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue