Skip to content

Commit c19cbaf

Browse files
authored
fix(net): Fix "Payload length does not match range requested bytes" when using open end (#8651)
1 parent 6efaf53 commit c19cbaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/http_fetch_plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ shaka.net.HttpFetchPlugin = class {
220220

221221
if (request.headers['Range']) {
222222
const range = request.headers['Range'].replace('bytes=', '').split('-')
223-
.map((r) => parseInt(r, 10));
223+
.filter((r) => r).map((r) => parseInt(r, 10));
224224
if (range.length == 2 &&
225225
arrayBuffer.byteLength != (range[1] - range[0] + 1)) {
226226
shaka.log.alwaysWarn(

0 commit comments

Comments
 (0)