mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 20:21:36 +00:00
Merge pull request #111 from feross/greenkeeper-simple-get-2.0.0
Update simple-get to version 2.0.0 🚀
This commit is contained in:
commit
326f5038b5
@ -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) {
|
||||
|
@ -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",
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user