mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-26 17:46:26 +03:00
fix(net): Fix "Payload length does not match range requested bytes" when using open end (#8651)
This commit is contained in:
committed by
GitHub
parent
6efaf5310b
commit
c19cbafc10
@@ -220,7 +220,7 @@ shaka.net.HttpFetchPlugin = class {
|
||||
|
||||
if (request.headers['Range']) {
|
||||
const range = request.headers['Range'].replace('bytes=', '').split('-')
|
||||
.map((r) => parseInt(r, 10));
|
||||
.filter((r) => r).map((r) => parseInt(r, 10));
|
||||
if (range.length == 2 &&
|
||||
arrayBuffer.byteLength != (range[1] - range[0] + 1)) {
|
||||
shaka.log.alwaysWarn(
|
||||
|
||||
Reference in New Issue
Block a user