Skip to content

Commit d9f8723

Browse files
committed
HTTP Range: Fixed another issue with computing the byte range
1 parent 3052623 commit d9f8723

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/api/file.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ class FileManagement {
330330
}
331331

332332
if (!info.cr) {
333+
if (!to) to = (info.len - parseInt(from)) - 1;
333334
info.cr = "bytes " + from + '-' + to + '/' + info.len;
334335
}
335336

0 commit comments

Comments
 (0)