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