Skip to content

Commit

Permalink
Modified calls to http.ClientResponse to updated API for node v0.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Tidwell committed Feb 7, 2011
1 parent 5a03476 commit 8cc3a19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ Request.prototype.executeRequest= function(method, arguments, sign_it, result_ma
argumentString+= (operator + key + "=" + arguments[key]);
if( operator == "?" ) operator= "&";
}

var request= this.getHttpClient().request("GET",
this.baseUrl+ argumentString,
{"host": "api.flickr.com"});
var isFeedRequest= this.isFeedRequest;
request.addListener('response', function (response) {
var result= "";
response.setBodyEncoding("utf8");
response.setEncoding("utf8");
response.addListener("data", function (chunk) {
result+= chunk;
});
Expand Down Expand Up @@ -129,7 +129,7 @@ Request.prototype.executeRequest= function(method, arguments, sign_it, result_ma
}
});
});
request.close();
request.end();
};

exports.Request = Request;

0 comments on commit 8cc3a19

Please sign in to comment.