Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2014-12-31 09:25:09 +0300
committerFeross Aboukhadijeh <feross@feross.org>2014-12-31 12:08:01 +0300
commit889e04156709321ff694679b7ea064f18bbb08e3 (patch)
treea6e58dc3875b8168f2a34e4d9e3afa5e0674eadb /test/basic-node.js
parent5f8482e1eed7c22f51e08db52abe2d4358f04b9a (diff)
Use 'WebTorrent' user-agent for http requests
Fixes #229
Diffstat (limited to 'test/basic-node.js')
-rw-r--r--test/basic-node.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/basic-node.js b/test/basic-node.js
index ad269f0..614bdbe 100644
--- a/test/basic-node.js
+++ b/test/basic-node.js
@@ -13,9 +13,10 @@ var numbersPath = __dirname + '/content/numbers'
var leavesMagnetURI = 'magnet:?xt=urn:btih:d2474e86c95b19b8bcfdb92bc12c9d44667cfa36&dn=Leaves+of+Grass+by+Walt+Whitman.epub&tr=http%3A%2F%2Ftracker.thepiratebay.org%2Fannounce&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.ccc.de%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ffr33domtracker.h33t.com%3A3310%2Fannounce&tr=http%3A%2F%2Ftracker.bittorrent.am%2Fannounce'
test('client.add (http url to a torrent file (string))', function (t) {
- t.plan(2)
+ t.plan(3)
var server = http.createServer(function (req, res) {
+ t.equal(req.headers['user-agent'], 'WebTorrent (http://webtorrent.io)')
res.end(leaves)
})