Skip to content

Commit 1e919c4

Browse files
committed
changes for simple-get 2.0.0
1 parent 75238df commit 1e919c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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) {

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)