From 303ef14581279454ba8c66b306f2e78fe758d476 Mon Sep 17 00:00:00 2001 From: Francesco Pighi Date: Sat, 9 Apr 2011 14:13:54 +0100 Subject: [PATCH] Changed setBodyEncoding to setEncoding to be compatible with lates nodejs --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index ae1b338..af972cc 100755 --- a/lib/index.js +++ b/lib/index.js @@ -110,7 +110,7 @@ function _interact(verb, path, successStatus, options, host) { request.addListener('response', function(response) { var responseBody = "" - response.setBodyEncoding("utf8"); + response.setEncoding("utf8"); response.addListener("data", function(chunk) { responseBody += chunk