Skip to content

Commit d74802d

Browse files
lourdjonathanong
authored andcommittedMar 12, 2016
Standardizes instances of removeHeader to remove
1 parent 7373c7e commit d74802d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎lib/response.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ module.exports = {
135135
// no content
136136
if (null == val) {
137137
if (!statuses.empty[this.status]) this.status = 204;
138-
this.res.removeHeader('Content-Type');
139-
this.res.removeHeader('Content-Length');
140-
this.res.removeHeader('Transfer-Encoding');
138+
this.remove('Content-Type');
139+
this.remove('Content-Length');
140+
this.remove('Transfer-Encoding');
141141
return;
142142
}
143143

0 commit comments

Comments
 (0)
Please sign in to comment.