Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Node v0.3.8 #5

Merged
merged 1 commit into from May 29, 2011
Jump to file or symbol
Failed to load files and symbols.
+3 −3
Split
View
@@ -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;
});
@@ -129,7 +129,7 @@ Request.prototype.executeRequest= function(method, arguments, sign_it, result_ma
}
});
});
- request.close();
+ request.end();
};
exports.Request = Request;