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

master
Shawn Cheung 2018-03-23 17:56:32 +08:00 committed by Yiyu He
parent 9cef2db87e
commit 8c17517809
1 changed files with 1 additions and 1 deletions

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;