res: 205 is a no body response code too!
not sure anyone cares enough about this for a test. plus, it’ll still “work”master
parent
5e74f73c93
commit
3eb894ee85
|
@ -78,8 +78,7 @@ module.exports = {
|
||||||
}
|
}
|
||||||
|
|
||||||
this._status = this.res.statusCode = val;
|
this._status = this.res.statusCode = val;
|
||||||
var noContent = 304 == val || 204 == val;
|
if (this.body && ~[204, 205, 304].indexOf(val)) this.body = null;
|
||||||
if (noContent && this.body) this.body = null;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue