Add range header in retry download

This commit is contained in:
the1812 2019-04-03 13:08:58 +08:00
parent 5aa13de748
commit cb2e73f364
4 changed files with 6 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -238,6 +238,7 @@ class VideoDownloader
this.progressMap.set(xhr, 0);
this.updateProgress();
xhr.open("GET", fragment.url);
xhr.setRequestHeader("Range", range);
xhr.send();
});
xhr.setRequestHeader("Range", range);