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:
parent
5e74f73c93
commit
3eb894ee85
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue