Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

setBodyEncoding -> setEncoding #4

Open
wants to merge 1 commit into from

1 participant

Francesco Pighi
Francesco Pighi

Changed setBodyEncoding to setEncoding to be compatible with new versions of node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/index.js
2  lib/index.js
View
@@ -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
Something went wrong with that request. Please try again.