Browse Source

Fix deprecation message

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
67fb0ece6b
  1. 4
      lib/http.js

4
lib/http.js

@ -332,9 +332,7 @@ OutgoingMessage.prototype.sendHeaderLines = function (firstLine, headers) {
OutgoingMessage.prototype.sendBody = function () {
throw new Error("sendBody() has been renamed to write(). " +
"The 'body' event has been renamed to 'data' and " +
"the 'complete' event has been renamed to 'end'.");
throw new Error("sendBody() has been renamed to write(). ");
};

Loading…
Cancel
Save