Navigation Menu

Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Add a trace when a empty response is send #985

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/http.js
Expand Up @@ -591,6 +591,7 @@ OutgoingMessage.prototype.write = function(chunk, encoding) {
}

if (!this._hasBody) {
console.trace();
console.error('This type of response MUST NOT have a body. ' +
'Ignoring write() calls.');
return true;
Expand Down