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

pull/24503/head
isaacs 2012-06-21 10:04:21 -07:00
parent 6e5217d320
commit 260695afd0
1 changed files with 4 additions and 4 deletions

View File

@ -705,7 +705,7 @@ OutgoingMessage.prototype.write = function(chunk, encoding) {
}
if (!this._hasBody) {
console.error('This type of response MUST NOT have a body. ' +
debug('This type of response MUST NOT have a body. ' +
'Ignoring write() calls.');
return true;
}
@ -767,7 +767,7 @@ OutgoingMessage.prototype.end = function(data, encoding) {
}
if (data && !this._hasBody) {
console.error('This type of response MUST NOT have a body. ' +
debug('This type of response MUST NOT have a body. ' +
'Ignoring data passed to end().');
data = false;
}