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:
-rw-r--r--lib/webconn.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/webconn.js b/lib/webconn.js
index bd306f6..b1170a6 100644
--- a/lib/webconn.js
+++ b/lib/webconn.js
@@ -102,7 +102,7 @@ class WebConn extends Wire {
const fileEnd = requestedFile.offset + requestedFile.length - 1
const url = this.url +
(this.url[this.url.length - 1] === '/' ? '' : '/') +
- requestedFile.path
+ requestedFile.path.replace(this._torrent.path, '')
return {
url,
fileOffsetInRange: Math.max(requestedFile.offset - rangeStart, 0),