use this.response insteadof this.ctx.response (#1163)

This commit is contained in:
Shawn Cheung 2018-03-23 17:56:32 +08:00 committed by Yiyu He
parent 9cef2db87e
commit 8c17517809

View file

@ -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;