Browse files

Fix for >= 0.3.6

  • Loading branch information...
1 parent f30ba39 commit 04afc270f68a85614d9f2cdd27a2a6393ffba013 @chriso chriso committed Jan 29, 2011
Showing with 10 additions and 3 deletions.
  1. +5 −1 HISTORY.md
  2. +4 −1 lib/node.io/request.js
  3. +1 −1 package.json
View
6 HISTORY.md
@@ -1,3 +1,7 @@
+### v0.2.1-20
+ * Bug fixes
+ * Works with node >= v0.3.6
+
### v0.2.1-14
* Bug fixes
* Status messages are written to stderr
@@ -46,4 +50,4 @@
* Fixed an inheritance bug when not exclusively using CoffeeScript
* Added an -e (--eval) switch
* Updated .coffee compilation so it's compatible with command line switches
- * Added a `proxy` option (see API)
+ * Added a `proxy` option (see API)
View
5 lib/node.io/request.js
@@ -224,9 +224,12 @@ Job.prototype.doRequest = function (method, resource, body, headers, callback, p
if (request.socket && request.socket.destroy) {
request.socket.destroy();
}
+ /* In node >=0.3.6 typeof request.destroy === 'function'
+ * yet calling it fails..
if (request.destroy) {
request.destroy();
}
+ */
}
if (host.destroy) {
host.destroy();
@@ -505,4 +508,4 @@ var HttpProxy = function (host) {
* Export proxies
*/
exports.HttpProxy = HttpProxy;
-exports.Proxy = Proxy;
+exports.Proxy = Proxy;
View
2 package.json
@@ -1,6 +1,6 @@
{ "name" : "node.io",
"description" : "A distributed data scraping and processing framework for node.js",
- "version" : "0.2.1-18",
+ "version" : "0.2.1-20",
"homepage" : "http://github.com/chriso/node.io",
"keywords" : ["data","mapreduce","map","reduce","scraping","html","parsing","parse","scrape","process","processing","data"],
"author" : "Chris O'Hara <cohara87@gmail.com>",

0 comments on commit 04afc27

Please sign in to comment.