Skip to content

Commit 326f503

Browse files
committed
Merge pull request #111 from feross/greenkeeper-simple-get-2.0.0
Update simple-get to version 2.0.0 🚀
2 parents 4d0ff94 + 1e919c4 commit 326f503

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/client/http-tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ HTTPTracker.prototype._request = function (requestUrl, params, cb) {
8989
var u = requestUrl + (requestUrl.indexOf('?') === -1 ? '?' : '&') +
9090
common.querystringStringify(params)
9191

92-
get.concat(u, function (err, data, res) {
92+
get.concat(u, function (err, res, data) {
9393
if (self.destroyed) return
9494
if (err) return self.client.emit('warning', err)
9595
if (res.statusCode !== 200) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"random-iterate": "^1.0.1",
3434
"run-parallel": "^1.1.2",
3535
"run-series": "^1.0.2",
36-
"simple-get": "^1.3.0",
36+
"simple-get": "^2.0.0",
3737
"simple-peer": "^5.0.0",
3838
"simple-websocket": "^3.0.0",
3939
"string2compact": "^1.1.1",

test/scrape.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ test('server: multiple info_hash scrape (manual http request)', function (t) {
128128
var url = scrapeUrl + '?' + commonLib.querystringStringify({
129129
info_hash: [ binaryInfoHash1, binaryInfoHash2 ]
130130
})
131-
get.concat(url, function (err, data, res) {
131+
get.concat(url, function (err, res, data) {
132132
if (err) throw err
133133
t.equal(res.statusCode, 200)
134134

@@ -178,7 +178,7 @@ test('server: all info_hash scrape (manual http request)', function (t) {
178178

179179
server.once('start', function () {
180180
// now do a scrape of everything by omitting the info_hash param
181-
get.concat(scrapeUrl, function (err, data, res) {
181+
get.concat(scrapeUrl, function (err, res, data) {
182182
if (err) throw err
183183

184184
t.equal(res.statusCode, 200)

0 commit comments

Comments
 (0)