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>2016-05-20 05:17:30 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-05-20 05:17:30 +0300
commit101fdb7a46593e3abad7517bfee77ce40f30316c (patch)
tree0b4ae0c060617971c3a2daa1b2ed86bfa35b589c /index.js
parentee5dab1fe0c4f0ffde4d3ed14ea53926e8b83522 (diff)
Make user agent strings consistent
Diffstat (limited to 'index.js')
-rw-r--r--index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.js b/index.js
index 6e047a2..4ef2518 100644
--- a/index.js
+++ b/index.js
@@ -132,7 +132,9 @@ function WebTorrent (opts) {
if (typeof loadIPSet === 'function') {
loadIPSet(opts.blocklist, {
- headers: { 'user-agent': 'WebTorrent/' + VERSION + ' (http://webtorrent.io)' }
+ headers: {
+ 'user-agent': 'WebTorrent/' + VERSION + ' (https://webtorrent.io)'
+ }
}, function (err, ipSet) {
if (err) return self.error('Failed to load blocklist: ' + err.message)
self.blocked = ipSet