Merge pull request #626 from lourd/master

Standardizes instances of removeHeader to remove
This commit is contained in:
TJ Holowaychuk 2015-12-20 17:57:24 -08:00
commit 971115cfbd

View file

@ -134,9 +134,9 @@ module.exports = {
// no content // no content
if (null == val) { if (null == val) {
if (!statuses.empty[this.status]) this.status = 204; if (!statuses.empty[this.status]) this.status = 204;
this.res.removeHeader('Content-Type'); this.remove('Content-Type');
this.res.removeHeader('Content-Length'); this.remove('Content-Length');
this.res.removeHeader('Transfer-Encoding'); this.remove('Transfer-Encoding');
return; return;
} }