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
path: root/lib
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2016-05-20 05:24:31 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-05-20 05:24:31 +0300
commit0517bfd3fe35900756cf67f732e1101b0bfa515d (patch)
treecea23c6a6d68d10260c0eb7b562a381cd0c2a437 /lib
parent101fdb7a46593e3abad7517bfee77ce40f30316c (diff)
fix silly errors
Diffstat (limited to 'lib')
-rw-r--r--lib/torrent.js2
-rw-r--r--lib/webconn.js6
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/torrent.js b/lib/torrent.js
index db71a5f..fd12068 100644
--- a/lib/torrent.js
+++ b/lib/torrent.js
@@ -51,7 +51,7 @@ var FILESYSTEM_CONCURRENCY = 2
var RECONNECT_WAIT = [ 1000, 5000, 15000 ]
-var VERSION = require('./package.json').version
+var VERSION = require('../package.json').version
var TMP
try {
diff --git a/lib/webconn.js b/lib/webconn.js
index 3507241..bff2f89 100644
--- a/lib/webconn.js
+++ b/lib/webconn.js
@@ -7,7 +7,7 @@ var inherits = require('inherits')
var sha1 = require('simple-sha1')
var Wire = require('bittorrent-protocol')
-var VERSION = require('./package.json').version
+var VERSION = require('../package.json').version
inherits(WebConn, Wire)
@@ -114,8 +114,8 @@ WebConn.prototype.httpRequest = function (pieceIndex, offset, length, cb) {
url: url,
method: 'GET',
headers: {
- 'user-agent': 'WebTorrent/' + VERSION + ' (https://webtorrent.io)'
- 'range': 'bytes=' + start + '-' + end
+ 'user-agent': 'WebTorrent/' + VERSION + ' (https://webtorrent.io)',
+ range: 'bytes=' + start + '-' + end
}
}
get.concat(opts, function (err, res, data) {