Fix deprecation message
authorRyan Dahl <ry@tinyclouds.org>
Sat, 1 May 2010 21:45:14 +0000 (14:45 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Sat, 1 May 2010 21:45:14 +0000 (14:45 -0700)
lib/http.js

index 90feb8a..3b28c3f 100644 (file)
@@ -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(). ");
 };