Browse files

http: Hush 'MUST NOT have a body' warnings to debug()

  • Loading branch information...
1 parent 6e5217d commit 260695afd07067254a704c050243d2e619bae8b7 @isaacs isaacs committed Jun 21, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/http.js
View
8 lib/http.js
@@ -705,8 +705,8 @@ OutgoingMessage.prototype.write = function(chunk, encoding) {
}
if (!this._hasBody) {
- console.error('This type of response MUST NOT have a body. ' +
- 'Ignoring write() calls.');
+ debug('This type of response MUST NOT have a body. ' +
+ 'Ignoring write() calls.');
return true;
}
@@ -767,8 +767,8 @@ OutgoingMessage.prototype.end = function(data, encoding) {
}
if (data && !this._hasBody) {
- console.error('This type of response MUST NOT have a body. ' +
- 'Ignoring data passed to end().');
+ debug('This type of response MUST NOT have a body. ' +
+ 'Ignoring data passed to end().');
data = false;
}

0 comments on commit 260695a

Please sign in to comment.