Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
always add range header on data request
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericgermain committed Jan 13, 2020
1 parent 871382f commit 4bd8904
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/youtube-dl.js
Expand Up @@ -45,6 +45,8 @@ function processData (data, options, stream) {

if (options && options.start > 0 && options.end > 0) {
headers.Range = 'bytes=' + options.start + '-' + options.end
} else {
headers.Range = 'bytes=0-' + item.filesize
}

const req = request({
Expand Down

0 comments on commit 4bd8904

Please sign in to comment.