Skip to content

Commit

Permalink
Update packages/p2p-media-loader-core/src/http-loader.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Dmytro Demchenko <ipz215_ddo@student.ztu.edu.ua>
  • Loading branch information
Chocobozzz and DimaDemchenko authored Feb 6, 2025
1 parent 0978ecb commit 28eeb6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/p2p-media-loader-core/src/http-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ export class HttpRequestExecutor {
to !== undefined && from !== undefined ? to - from + 1 : undefined;

if (
(totalBytes !== undefined && this.request.totalBytes !== totalBytes) ||
(responseExpectedBytesLength !== undefined &&
this.expectedBytesLength !== responseExpectedBytesLength) ||
(from !== undefined && requestByteRange.start !== from) ||
(to !== undefined &&
requestByteRange.end !== undefined &&
Expand Down

0 comments on commit 28eeb6f

Please sign in to comment.