From 148f26f630f8588b20e731ab348b54791652a15b Mon Sep 17 00:00:00 2001 From: initial-wu Date: Fri, 27 Apr 2018 23:51:47 +0800 Subject: [PATCH] chore: use this.res.socket insteadof this.ctx.req.socket (#1177) prefer a shorter path to the object --- lib/response.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/response.js b/lib/response.js index fb6b897..f9d5828 100644 --- a/lib/response.js +++ b/lib/response.js @@ -33,7 +33,7 @@ module.exports = { */ get socket() { - return this.ctx.req.socket; + return this.res.socket; }, /**