Skip to content

Commit

Permalink
Get correct length when using offset option [fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Aug 7, 2023
1 parent 38736b0 commit e3af9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ Transfer.prototype.get = function() {
);
}
} else if (first) {
this.length = rangeMatch[3] * 1;
this.length = rangeMatch[3] * 1; // - this.offset;
}
} else if (this.position > 0) {
throw new TransferError('No range header');
Expand Down

0 comments on commit e3af9a8

Please sign in to comment.