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/webconn.js | |
parent | 101fdb7a46593e3abad7517bfee77ce40f30316c (diff) |
fix silly errors
Diffstat (limited to 'lib/webconn.js')
-rw-r--r-- | lib/webconn.js | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |