refactor Response#status=

This commit is contained in:
TJ Holowaychuk 2013-12-30 10:04:34 -08:00
parent 41502429de
commit dc96d9828b

View file

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