diff --git a/package.json b/package.json index 147d03ae..97636ce9 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "finalhandler": "^0.4.0", "run-series": "^1.0.2", "serve-static": "^1.9.3", - "simple-get": "^1.0.0", + "simple-get": "^2.0.0", "standard": "^6.0.1", "tape": "^4.0.0", "uglify-js": "^2.4.15", diff --git a/test/node/server.js b/test/node/server.js index 4c7da451..62565b34 100644 --- a/test/node/server.js +++ b/test/node/server.js @@ -28,13 +28,13 @@ test('torrent.createServer: programmatic http server', function (t) { var host = 'http://localhost:' + port // Index page should list files in the torrent - get.concat(host + '/', function (err, data) { + get.concat(host + '/', function (err, res, data) { t.error(err, 'got http response for /') data = data.toString() t.ok(data.indexOf('Leaves of Grass by Walt Whitman.epub') !== -1) // Verify file content for first (and only) file - get.concat(host + '/0', function (err, data) { + get.concat(host + '/0', function (err, res, data) { t.error(err, 'got http response for /0') t.deepEqual(data, common.leaves.content)