mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 13:53:53 +02:00
Add descriptive comment on why range request response must be skipped
This commit is contained in:
@@ -316,6 +316,8 @@ export class UrlSource extends Source {
|
|||||||
this._fullData = await rangeResponse.arrayBuffer();
|
this._fullData = await rangeResponse.arrayBuffer();
|
||||||
if (this._fullData.byteLength !== 1) {
|
if (this._fullData.byteLength !== 1) {
|
||||||
return this._fullData.byteLength;
|
return this._fullData.byteLength;
|
||||||
|
} else {
|
||||||
|
// The server responded with 200, but returned only the requested range, so skip the response
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user