summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-06-21 10:04:21 -0700
committerisaacs <i@izs.me>2012-06-21 12:05:33 -0700
commit260695afd07067254a704c050243d2e619bae8b7 (patch)
treedebe19dc9036897f41eac0e584fe77235b576f89 /lib
parent6e5217d3208f6792a500fc408b4dcef0a17c5412 (diff)
downloadnodejs-260695afd07067254a704c050243d2e619bae8b7.tar.gz
nodejs-260695afd07067254a704c050243d2e619bae8b7.tar.bz2
nodejs-260695afd07067254a704c050243d2e619bae8b7.zip
http: Hush 'MUST NOT have a body' warnings to debug()
Diffstat (limited to 'lib')
-rw-r--r--lib/http.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/http.js b/lib/http.js
index 21359cad4..b4b6edc9d 100644
--- a/lib/http.js
+++ b/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;
}