diff --git a/lib/response.js b/lib/response.js index 0cd29cb..1bda677 100644 --- a/lib/response.js +++ b/lib/response.js @@ -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; }, /**