refactor Response#status=

master
TJ Holowaychuk 2013-12-30 10:04:34 -08:00
parent 41502429de
commit dc96d9828b
1 changed files with 2 additions and 2 deletions

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