From 75238df170f169e34c9dff4b9fbb325892ed6c00 Mon Sep 17 00:00:00 2001 From: greenkeeperio-bot Date: Sun, 14 Feb 2016 00:03:18 -0800 Subject: [PATCH 1/2] chore(package): update simple-get to version 2.0.0 http://greenkeeper.io/ --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 64aa3e3..cbafc23 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "random-iterate": "^1.0.1", "run-parallel": "^1.1.2", "run-series": "^1.0.2", - "simple-get": "^1.3.0", + "simple-get": "^2.0.0", "simple-peer": "^5.0.0", "simple-websocket": "^3.0.0", "string2compact": "^1.1.1", From 1e919c44cbe183ac6e12b5976fe31cb457b4f8c3 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Sun, 14 Feb 2016 00:31:44 -0800 Subject: [PATCH 2/2] changes for simple-get 2.0.0 --- lib/client/http-tracker.js | 2 +- test/scrape.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/client/http-tracker.js b/lib/client/http-tracker.js index eddafc2..5068e19 100644 --- a/lib/client/http-tracker.js +++ b/lib/client/http-tracker.js @@ -89,7 +89,7 @@ HTTPTracker.prototype._request = function (requestUrl, params, cb) { var u = requestUrl + (requestUrl.indexOf('?') === -1 ? '?' : '&') + common.querystringStringify(params) - get.concat(u, function (err, data, res) { + get.concat(u, function (err, res, data) { if (self.destroyed) return if (err) return self.client.emit('warning', err) if (res.statusCode !== 200) { diff --git a/test/scrape.js b/test/scrape.js index 66aa475..1a53e8e 100644 --- a/test/scrape.js +++ b/test/scrape.js @@ -128,7 +128,7 @@ test('server: multiple info_hash scrape (manual http request)', function (t) { var url = scrapeUrl + '?' + commonLib.querystringStringify({ info_hash: [ binaryInfoHash1, binaryInfoHash2 ] }) - get.concat(url, function (err, data, res) { + get.concat(url, function (err, res, data) { if (err) throw err t.equal(res.statusCode, 200) @@ -178,7 +178,7 @@ test('server: all info_hash scrape (manual http request)', function (t) { server.once('start', function () { // now do a scrape of everything by omitting the info_hash param - get.concat(scrapeUrl, function (err, data, res) { + get.concat(scrapeUrl, function (err, res, data) { if (err) throw err t.equal(res.statusCode, 200)