res: 205 is a no body response code too!

not sure anyone cares enough about this for a test. plus, it’ll still
“work”
This commit is contained in:
Jonathan Ong 2013-12-30 22:25:44 -08:00
parent 5e74f73c93
commit 3eb894ee85

View file

@ -78,8 +78,7 @@ module.exports = {
}
this._status = this.res.statusCode = val;
var noContent = 304 == val || 204 == val;
if (noContent && this.body) this.body = null;
if (this.body && ~[204, 205, 304].indexOf(val)) this.body = null;
},
/**