refactor Response#status=
This commit is contained in:
parent
41502429de
commit
dc96d9828b
1 changed files with 2 additions and 2 deletions
|
@ -77,8 +77,8 @@ module.exports = {
|
||||||
val = n;
|
val = n;
|
||||||
}
|
}
|
||||||
|
|
||||||
var status = this._status = this.res.statusCode = val;
|
this._status = this.res.statusCode = val;
|
||||||
var noContent = 304 == status || 204 == status;
|
var noContent = 304 == val || 204 == val;
|
||||||
if (noContent && this.body) this.body = null;
|
if (noContent && this.body) this.body = null;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue