From 67fb0ece6b331284bdea1f75f5957f47bedca572 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sat, 1 May 2010 14:45:14 -0700 Subject: [PATCH] Fix deprecation message --- lib/http.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/http.js b/lib/http.js index 90feb8a282..3b28c3fc92 100644 --- a/lib/http.js +++ b/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(). "); };