Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Modified calls to http.ClientResponse to updated API for node v0.3.8

  • Loading branch information...
commit 8cc3a194955092e5b0f8a9f138e656cbff087b34 1 parent 5a03476
Tidwell authored

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +3 3 lib/request.js
6 lib/request.js
@@ -77,14 +77,14 @@ Request.prototype.executeRequest= function(method, arguments, sign_it, result_ma
77 77 argumentString+= (operator + key + "=" + arguments[key]);
78 78 if( operator == "?" ) operator= "&";
79 79 }
80   -
  80 +
81 81 var request= this.getHttpClient().request("GET",
82 82 this.baseUrl+ argumentString,
83 83 {"host": "api.flickr.com"});
84 84 var isFeedRequest= this.isFeedRequest;
85 85 request.addListener('response', function (response) {
86 86 var result= "";
87   - response.setBodyEncoding("utf8");
  87 + response.setEncoding("utf8");
88 88 response.addListener("data", function (chunk) {
89 89 result+= chunk;
90 90 });
@@ -129,7 +129,7 @@ Request.prototype.executeRequest= function(method, arguments, sign_it, result_ma
129 129 }
130 130 });
131 131 });
132   - request.close();
  132 + request.end();
133 133 };
134 134
135 135 exports.Request = Request;

0 comments on commit 8cc3a19

Please sign in to comment.
Something went wrong with that request. Please try again.