From 8c175178098bed74048d066276bacdf597d3697e Mon Sep 17 00:00:00 2001 From: Shawn Cheung <958033967@qq.com> Date: Fri, 23 Mar 2018 17:56:32 +0800 Subject: [PATCH] use this.response insteadof this.ctx.response (#1163) --- lib/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request.js b/lib/request.js index 23ed3f2..25bf373 100644 --- a/lib/request.js +++ b/lib/request.js @@ -309,7 +309,7 @@ module.exports = { // 2xx or 304 as per rfc2616 14.26 if ((s >= 200 && s < 300) || 304 == s) { - return fresh(this.header, this.ctx.response.header); + return fresh(this.header, this.response.header); } return false;