diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2016-05-20 05:24:31 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2016-05-20 05:24:31 +0300 |
commit | 0517bfd3fe35900756cf67f732e1101b0bfa515d (patch) | |
tree | cea23c6a6d68d10260c0eb7b562a381cd0c2a437 /lib | |
parent | 101fdb7a46593e3abad7517bfee77ce40f30316c (diff) |
fix silly errors
Diffstat (limited to 'lib')
-rw-r--r-- | lib/torrent.js | 2 | ||||
-rw-r--r-- | lib/webconn.js | 6 |
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) { |