From ec477107d56d401dcb54057a8648d0247c05abfa Mon Sep 17 00:00:00 2001 From: Louis DeScioli Date: Sun, 20 Dec 2015 16:30:54 -0500 Subject: [PATCH] Standardizes instances of removeHeader to remove --- lib/response.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/response.js b/lib/response.js index 8027c19..4d79650 100644 --- a/lib/response.js +++ b/lib/response.js @@ -134,9 +134,9 @@ module.exports = { // no content if (null == val) { if (!statuses.empty[this.status]) this.status = 204; - this.res.removeHeader('Content-Type'); - this.res.removeHeader('Content-Length'); - this.res.removeHeader('Transfer-Encoding'); + this.remove('Content-Type'); + this.remove('Content-Length'); + this.remove('Transfer-Encoding'); return; }