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>2015-08-22 15:46:27 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-08-22 15:46:27 +0300
commit4ccd9667ddaeb97c6aa50bc36311a242c0d02c70 (patch)
tree05994f5fd5156deb905b7b3d7ba8f205dd494062 /test/basic-node.js
parent958f30a0341ca323c7cef794b00fe38eed845297 (diff)
Include web torrent version in http user agent
Diffstat (limited to 'test/basic-node.js')
-rw-r--r--test/basic-node.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/basic-node.js b/test/basic-node.js
index cfdc70f..494dace 100644
--- a/test/basic-node.js
+++ b/test/basic-node.js
@@ -16,7 +16,7 @@ test('client.add: http url to a torrent file, string', function (t) {
t.plan(3)
var server = http.createServer(function (req, res) {
- t.equal(req.headers['user-agent'], 'WebTorrent (http://webtorrent.io)')
+ t.ok(req.headers['user-agent'].indexOf('WebTorrent') !== -1)
res.end(leaves)
})