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 a2745ef commit 0978ecb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/p2p-media-loader-core/src/http-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@ export class HttpRequestExecutor {
: undefined;
if (contentRange) {
const { from, to } = contentRange;
const totalBytes = to !== undefined && from !== undefined
? to - from + 1
: undefined
const responseExpectedBytesLength =
to !== undefined && from !== undefined ? to - from + 1 : undefined;

if (
(totalBytes !== undefined && this.request.totalBytes !== totalBytes) ||
Expand Down

0 comments on commit 0978ecb

Please sign in to comment.